/* ==========================================================================
   PRIMUS LANDING – Design System (unificado con app.css)
   Usa los mismos tokens de diseño que el dashboard.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Palette (idéntica a app.css) ── */
  --slate-50: #f8fafc;  --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;  --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569;  --slate-700: #334155; --slate-800: #1e293b;
  --slate-900: #0f172a;  --slate-950: #020617;

  --primary-50: #f0f9ff;  --primary-100: #e0f2fe; --primary-200: #bae6fd;
  --primary-300: #7dd3fc; --primary-400: #38bdf8;  --primary-500: #0ea5e9;
  --primary-600: #0284c7; --primary-700: #0369a1;  --primary-800: #075985;
  --primary-900: #0c4a6e;

  --success-bg: #ecfdf5;  --success: #059669; --success-light: #22c55e; --success-border: #a7f3d0;
  --warning: #f97316;     --warning-dark: #ea580c;
  --danger: #dc2626;      --danger-bg: #fef2f2;

  /* ── Aliases semánticos ── */
  --brand: var(--slate-900);
  --brand-mid: var(--slate-800);
  --accent: var(--primary-500);
  --accent-dark: var(--primary-600);
  --text: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);
  --surface: #ffffff;
  --bg: var(--slate-50);
  --border: var(--slate-200);

  /* ── Tipografía ── */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ── Radios & sombras (idénticos a app.css) ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  --transition: 200ms cubic-bezier(.4,0,.2,1);

  /* ── Auth card aliases ── */
  --azul: var(--slate-900);
  --azul-med: var(--slate-800);
  --blanco: #ffffff;
  --gris: var(--slate-500);
  --borde: var(--slate-200);
  --verde: var(--success-light);
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Accesibilidad: skip link y texto solo para lectores de pantalla */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--slate-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.skip-to-content:focus {
  left: 0.75rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img, svg { display: block; max-width: 100%; height: auto; }

/* ==========================================================================
   TOP BAR (barra superior oscura)
   ========================================================================== */
.top-bar {
  background: var(--brand);
  color: rgba(255,255,255,.95);
  font-size: .78rem;
  padding: .45rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.top-bar__left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.top-bar__right { display: flex; align-items: center; gap: 1rem; }
.top-bar a, .top-bar span {
  color: rgba(255,255,255,.95); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; transition: color .15s;
}
.top-bar a:hover { color: #fff; }
.top-bar .feather { width: 13px; height: 13px; opacity: .9; }
.top-bar__badge {
  background: rgba(14,165,233,.25); color: var(--primary-300);
  padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid rgba(14,165,233,.3);
}

/* ==========================================================================
   HEADER / NAV (sticky)
   ========================================================================== */
.landing-header {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
  position: sticky; top: 0; z-index: 200;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.landing-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .875rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.landing-nav__logo {
  font-size: 1.4rem; font-weight: 800; color: var(--brand);
  text-decoration: none; letter-spacing: -.04em;
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}
.landing-nav__logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success-light));
}
.landing-nav__links { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.landing-nav__links a {
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .75rem; border-radius: var(--radius-md); transition: var(--transition); white-space: nowrap;
}
.landing-nav__links a:hover { color: var(--text); background: var(--bg); }
.landing-nav__links a.active { color: var(--text); font-weight: 700; background: var(--bg); }
.landing-nav__links a .feather { width: 15px; height: 15px; flex-shrink: 0; }

.landing-nav__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-login-btn {
  color: var(--text-secondary); font-size: .875rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .875rem; border-radius: var(--radius-md); border: 1.5px solid var(--border); transition: var(--transition);
}
.nav-login-btn:hover { color: var(--text); border-color: var(--brand); background: var(--bg); }
.nav-login-btn .feather { width: 15px; height: 15px; }

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; border-radius: var(--radius-md); color: var(--brand); transition: background .15s;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger .feather { width: 22px; height: 22px; }

.landing-nav__mobile {
  display: none; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; gap: .25rem;
}
.landing-nav__mobile.open { display: flex; }
.landing-nav__mobile a {
  color: var(--text-secondary); font-size: 1rem; font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .75rem; border-radius: var(--radius-md); transition: var(--transition);
}
.landing-nav__mobile a:hover, .landing-nav__mobile a.active { color: var(--text); background: var(--bg); }
.landing-nav__mobile a .feather { width: 17px; height: 17px; }
.landing-nav__mobile__divider { height: 1px; background: var(--border); margin: .5rem 0; }
.landing-nav__mobile .cta-btn { justify-content: center; margin-top: .25rem; }

/* ==========================================================================
   BOTONES (landing – misma estructura que app.css .btn)
   ========================================================================== */
.btn, .cta-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-weight: 700; font-size: .9rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-lg);
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap; line-height: 1.5;
}
.btn .feather, .cta-btn .feather { width: 18px; height: 18px; }
.btn:focus-visible, .cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary, .cta-btn {
  background: var(--brand); color: var(--surface);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover, .cta-btn:hover {
  background: var(--brand-mid); color: var(--surface);
  box-shadow: var(--shadow-lg); transform: translateY(-1px);
}
.cta-btn:active { transform: translateY(0); }

.btn--sec, .cta-btn--sec {
  background: transparent; color: var(--brand); border: 2px solid var(--brand-mid); box-shadow: none;
}
.btn--sec:hover, .cta-btn--sec:hover { background: var(--brand); color: var(--surface); border-color: var(--brand); }

.btn--accent, .cta-btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--surface); border: none; }
.btn--accent:hover, .cta-btn--accent:hover { background: linear-gradient(135deg, var(--accent-dark), var(--primary-800)); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn--success { background: var(--success); color: var(--surface); }
.btn--success:hover { background: #047857; transform: translateY(-1px); }

.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn--block, .btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   LAYOUT (wrapper para páginas landing)
   ========================================================================== */
.landing-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.landing { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* ==========================================================================
   HERO (landing.php)
   ========================================================================== */
.hero {
  text-align: center; padding: 3rem 1.5rem; margin-bottom: 2.5rem;
  background: linear-gradient(135deg, rgba(15,23,42,.03), rgba(14,165,233,.04));
  border-radius: 20px; border: 1px solid rgba(15,23,42,.06);
}
.hero__logo {
  font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -.02em; margin-bottom: .4rem;
}
.hero__pre { font-size: .9rem; color: var(--warning); font-weight: 600; margin-bottom: .6rem; }
.hero__h1 { font-size: 1.85rem; font-weight: 800; line-height: 1.25; margin-bottom: .75rem; }
.hero__sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 1rem 0; border-top: 1px solid var(--border); margin-top: 1.75rem; }
.trust span { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--text-secondary); }
.trust .feather { width: 18px; height: 18px; color: var(--success-light); }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec-header { text-align: center; margin-bottom: 2rem; }
.sec-header__badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .9rem; border-radius: var(--radius-full); margin-bottom: .6rem;
}
.sec-header__badge--blue { background: var(--primary-50); color: var(--primary-700); }
.sec-header__badge--green { background: var(--success-bg); color: var(--success); }
.sec-header__title { font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.sec-header__desc { font-size: .95rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ==========================================================================
   AUDIENCE TABS (landing.php)
   ========================================================================== */
.audience-tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.audience-tab {
  padding: .75rem 1.5rem; font-size: .95rem; font-weight: 600;
  border-radius: var(--radius-lg); border: 2px solid var(--border);
  background: var(--surface); color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.audience-tab:hover { border-color: var(--brand); color: var(--brand); }
.audience-tab.active { background: var(--brand); color: var(--surface); border-color: var(--brand); }
.audience-panel { display: none; }
.audience-panel.active { display: block; }

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.pricing-card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md); border: 2px solid transparent;
  transition: var(--transition); display: flex; flex-direction: column; position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card--pop { border-color: var(--success-light); box-shadow: var(--shadow-lg); }
.pricing-card--pop::before {
  content: 'Recomendado'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--success-light); color: var(--surface);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .9rem; border-radius: var(--radius-full);
}
.pricing-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: .15rem; }
.pricing-card__desc { font-size: .8rem; color: var(--text-secondary); margin-bottom: 1rem; min-height: 2.4rem; }
.pricing-card__price { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.pricing-card__price small { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.pricing-card__period { font-size: .78rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.pricing-card__divider { height: 1px; background: var(--border); margin-bottom: 1rem; }
.pricing-card__features { list-style: none; flex: 1; margin-bottom: 1.25rem; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; margin-bottom: .55rem; line-height: 1.4; }
.pricing-card__features li .feather { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--success-light); }
.pricing-card__features li.disabled { color: var(--text-muted); opacity: .5; }
.pricing-card__features li.disabled .feather { color: var(--text-muted); }
.pricing-card__cta { margin-top: auto; }
.pricing-card__cta .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.feature-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; gap: .85rem; align-items: flex-start; transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.feature-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-card__icon .feather { width: 20px; height: 20px; color: var(--surface); }
.feature-card__icon--blue { background: var(--primary-600); }
.feature-card__icon--green { background: var(--success); }
.feature-card__icon--orange { background: var(--warning); }
.feature-card__title { font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.feature-card__desc { font-size: .78rem; color: var(--text-secondary); line-height: 1.45; }

/* ==========================================================================
   ROI SECTION
   ========================================================================== */
.roi {
  background: linear-gradient(135deg, var(--brand), var(--slate-950));
  color: var(--surface); border-radius: 20px; padding: 2.5rem 2rem;
  text-align: center; position: relative; overflow: hidden; margin: 2.5rem 0;
}
.roi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--success-light), var(--warning)); }
.roi__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; opacity: .95; }
.roi__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-bottom: 1.5rem; }
.roi__num { font-size: 2.5rem; font-weight: 800; color: var(--success-light); line-height: 1.1; }
.roi__lbl { font-size: .85rem; opacity: .9; margin-top: .2rem; }

/* ==========================================================================
   COMPARE TABLE
   ========================================================================== */
.compare-wrap { overflow-x: auto; margin-bottom: 2.5rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  background: var(--brand); color: var(--surface); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0;
}
.compare-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.compare-table tbody tr:nth-child(even) { background: var(--slate-50); }
.compare-table tbody tr:hover { background: var(--primary-50); }
.compare-table .feat-group { background: var(--slate-100); font-weight: 700; font-size: .8rem; color: var(--brand); }
.compare-table .ck { color: var(--success-light); font-weight: 700; text-align: center; }
.compare-table .no { color: var(--slate-300); text-align: center; }
.compare-table td:not(:first-child) { text-align: center; width: 120px; }

/* ==========================================================================
   FORMS (cotizar, demo, lead)
   ========================================================================== */
.form-landing {
  max-width: 520px; margin: 2.5rem auto;
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 2.25rem; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.form-landing__badge {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary-700); margin-bottom: .5rem; display: block;
}
.form-landing h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; line-height: 1.3; }
.form-landing__intro, .form-landing__sub { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }
.form-landing label {
  display: block; font-weight: 500; margin-bottom: .4rem; font-size: .9375rem; color: var(--text);
}
.form-landing input,
.form-landing select,
.form-landing textarea {
  width: 100%; padding: .65rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: .95rem; margin-bottom: 1.125rem; font-family: var(--font); transition: var(--transition);
  color: var(--text); background: var(--surface); line-height: 1.5;
}
.form-landing input:focus,
.form-landing select:focus,
.form-landing textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-landing input::placeholder,
.form-landing textarea::placeholder { color: var(--text-muted); }
.form-landing textarea { min-height: 100px; resize: vertical; }
.form-landing button {
  width: 100%; padding: .85rem; background: var(--brand); color: var(--surface);
  border: none; border-radius: var(--radius-lg); font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: var(--font); transition: var(--transition);
}
.form-landing button:hover { background: var(--brand-mid); box-shadow: var(--shadow-md); }
.form-landing__msg { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; font-size: .9375rem; }
.form-landing__msg--ok { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.form-landing__msg--err { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }

/* Plan selection buttons */
.form-landing__plan-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.125rem; border: none; padding: 0; }
.form-landing__plan-btns legend { font-weight: 500; margin-bottom: .5rem; font-size: .9375rem; color: var(--text); display: block; width: 100%; }
.form-landing__plan-btn {
  flex: 1; min-width: 120px; padding: .75rem 1rem;
  border: 2px solid var(--slate-300); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text-secondary);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font); text-align: center; position: relative;
}
.form-landing__plan-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--slate-50); }
.form-landing__plan-btn.selected {
  border-color: var(--accent-dark); border-width: 3px;
  background: var(--accent-dark); color: var(--surface);
  box-shadow: 0 0 0 2px rgba(2,132,199,.3);
}
.form-landing__plan-btn.selected::after { content: '✓'; position: absolute; top: 4px; right: 8px; font-size: .875rem; font-weight: 700; }
.form-landing__plan-btn.selected:hover { background: var(--primary-700); border-color: var(--primary-700); color: var(--surface); }
.form-landing__plan-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* Tipo asesor radio buttons */
.tipo-asesor-option {
  flex: 1; min-width: 150px; padding: .75rem 1rem;
  border: 2px solid var(--slate-300); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text-secondary);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-align: center; position: relative;
}
.tipo-asesor-option:hover { border-color: var(--brand); color: var(--brand); }
.tipo-asesor-option small { font-weight: 400; font-size: .8rem; color: var(--text-muted); display: block; }

/* ==========================================================================
   CTA BOTTOM / FOOTER
   ========================================================================== */
.cta-bottom { text-align: center; padding: 2.5rem 1rem; }
.cta-bottom p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.cta-bottom .cta-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.footer { text-align: center; padding: 2rem 1rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer a { color: var(--text-secondary); font-size: .88rem; margin: 0 .75rem; }
.footer a:hover { color: var(--text); }
.footer__copy { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(18px); }
.fade-in.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero__h1 { font-size: 1.4rem; }
  .hero__logo { font-size: 2.2rem; }
  .audience-tabs { flex-direction: column; align-items: center; }
  .roi__grid { gap: 1.5rem; }
}

@media (max-width: 820px) {
  .landing-nav__links, .landing-nav__actions .cta-btn { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .landing-nav__actions .nav-login-btn { display: none; }
}

@media (max-width: 520px) {
  .top-bar__right { display: none; }
  .top-bar { justify-content: center; }
  .top-bar__badge { display: none; }
  .top-bar__left { justify-content: center; gap: 0.75rem; font-size: 0.7rem; }
  .top-bar__left a:last-child { display: none; }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  .top-bar, .landing-header, .landing-nav, .landing-wrap {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .landing-wrap, .landing { padding: 0.5rem 0.75rem 1.5rem; }
  .hero { padding: 2rem 1rem; }
  .pricing-card { padding: 1.5rem 1.25rem; }
  .btn, .cta-btn { padding: .65rem 1.1rem; font-size: .88rem; }
  .form-landing { padding: 1.5rem 1.25rem; margin: 1.5rem auto; }
  .form-landing h2 { font-size: 1.25rem; }
  .top-bar { padding: .45rem 0.75rem; }
  .landing-nav { padding: .875rem 0.75rem; gap: 0.75rem; }
  .landing-header { width: 100%; max-width: 100vw; }
}

/* Fix login mobile overflow */
@media (max-width: 480px) {
  .auth-wrap {
    padding: 1rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .auth-card {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    min-width: unset;
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .auth-card__logo {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .auth-card__logo-icon {
    width: 36px;
    height: 36px;
  }
  .auth-card__title {
    font-size: 1.1rem;
  }
  .auth-card__subtitle {
    font-size: 0.75rem;
  }
  .auth-card .form-control {
    padding: 0.6rem 0.6rem;
    font-size: 0.9rem;
  }
  .auth-card .btn-primary {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
  }
  .auth-card__links a {
    font-size: 0.8rem;
  }
  .auth-card__footer a {
    font-size: 0.75rem;
  }
  .auth-card .alert {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
  .auth-card .form-group {
    margin-bottom: 0.875rem;
  }
  .auth-card .form-label {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   INDEX PAGE – Hero variant & benefit cards
   ========================================================================== */
.hero__badge {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand-mid); background: rgba(15,23,42,.08);
  padding: .4rem .875rem; border-radius: var(--radius-full); margin-bottom: 1.25rem;
}
.hero__titulo {
  font-size: 2.5rem; font-weight: 700; color: var(--brand);
  line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1rem;
}
.hero__subtitulo { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.hero__ctas .cta-btn { min-width: 160px; justify-content: center; }
.hero__ctas .cta-btn--ghost {
  min-width: 140px; justify-content: center;
  background: transparent; color: var(--brand-mid); border: 2px solid var(--slate-400);
  font-weight: 700;
}
.hero__ctas .cta-btn--ghost:hover {
  border-color: var(--brand); color: var(--brand); background: rgba(15,23,42,.04);
}

/* Hero · textos de confianza y enlaces (contraste AA sobre fondo claro) */
.hero__trust {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.hero__trust--tight { margin-top: .75rem; font-size: .88rem; }
.hero__trust .feather-inline {
  width: 1rem; height: 1rem;
  vertical-align: middle;
  margin-right: .25rem;
}
.hero__trust-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero__trust-link:hover { color: var(--brand); }
.hero__trust-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.section-label {
  text-align: center; font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin: 3rem 0 1.5rem;
}
.beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.benef-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.benef-card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.benef-card .benef-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--success-bg); border-radius: var(--radius-lg); margin-bottom: 1rem;
}
.benef-card .benef-icon .feather { width: 22px; height: 22px; color: var(--success-light); }
.benef-card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--brand); margin-bottom: .5rem; }
.benef-card p { font-size: .9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ==========================================================================
   PAQUETES PAGE
   ========================================================================== */
.pq-intro { text-align: center; padding: 3.5rem 1rem 2.5rem; max-width: 620px; margin: 0 auto; }
.pq-intro__badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25); padding: .3rem .9rem; border-radius: var(--radius-full); margin-bottom: 1rem;
}
.pq-intro h2 { font-size: clamp(1.75rem,4vw,2.25rem); font-weight: 800; color: var(--brand); margin-bottom: .875rem; line-height: 1.2; letter-spacing: -.02em; }
.pq-intro p { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.7; }

.pq-intro__period-row {
  display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap;
}
.pq-period-label { font-size: .9rem; }
.pq-period-label--active { font-weight: 600; color: var(--brand); }
.pq-period-label--inactive { font-weight: 500; color: var(--text-secondary); }
.pq-toggle-periodo {
  position: relative; width: 48px; height: 26px; border-radius: 13px;
  border: 2px solid #1e3a5f; background: #fff; cursor: pointer; transition: background .2s; padding: 0;
}
.pq-toggle-periodo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pq-toggle-periodo__thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #1e3a5f; transition: transform .2s, background .2s;
}
.pq-pill-anual-badge {
  font-size: .72rem; font-weight: 700; color: #fff; background: #15803d;
  padding: .2rem .55rem; border-radius: 12px;
}
.pq-pill-personalizado {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--brand-mid);
  background: rgba(30, 58, 95, 0.1); padding: .35rem .85rem; border-radius: 9999px;
  text-decoration: none; border: 2px solid rgba(30, 58, 95, 0.35);
  transition: background .2s, color .2s, border-color .2s;
}
.pq-pill-personalizado:hover {
  background: var(--brand-mid); color: #fff; border-color: var(--brand-mid);
}
.pq-pill-personalizado:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pq-tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.pq-tab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.5rem; font-size: .95rem; font-weight: 600;
  border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.pq-tab:hover { border-color: var(--brand-mid); color: var(--brand); }
.pq-tab.active { background: var(--brand); color: var(--surface); border-color: var(--brand); }
.pq-tab .feather { width: 16px; height: 16px; }
.pq-panel { display: none; }
.pq-panel.active { display: block; }

.pq-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin: 0 0 3rem; }
.pq-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.75rem; display: flex; flex-direction: column;
  position: relative; transition: var(--transition);
}
.pq-card:hover { box-shadow: var(--shadow-lg); border-color: var(--slate-300); }
.pq-card--featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(14,165,233,.18); transform: translateY(-6px); }
.pq-card--featured:hover { box-shadow: 0 12px 40px rgba(14,165,233,.25); }
.pq-card__head {
  display: flex;
  flex-direction: column;
  height: 240px;
}
.pq-card__popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: var(--surface); font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .25rem .875rem; border-radius: var(--radius-full); white-space: nowrap;
}
.pq-card__name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: .5rem; }
.pq-card--featured .pq-card__name { color: var(--accent); }
.pq-card__price { font-size: 2.5rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .25rem; }
.pq-card__price sup { font-size: 1.1rem; font-weight: 700; vertical-align: super; }
.pq-card__period { font-size: .82rem; color: var(--text-secondary); margin-bottom: 1rem; }
.pq-card__desc { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 1.5rem; }
.pq-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.pq-card__features li { font-size: .875rem; color: var(--brand); display: flex; align-items: flex-start; gap: .5rem; }
.pq-card__features li::before { content: '✓'; color: var(--success-light); font-weight: 700; flex-shrink: 0; margin-top: .05em; }
.pq-card__cta { text-align: center; margin-top: auto; }
.pq-card__cta .cta-btn { width: 100%; justify-content: center; font-size: .9rem; padding: .75rem 1.25rem; }
.pq-card__cta .cta-btn:hover { transform: translateY(-1px); }

.pq-card:not(.pq-card--featured):first-child .pq-card__cta .cta-btn,
.pq-card__cta .cta-btn.pq-btn-esencial {
  background: transparent !important; color: var(--brand) !important; border: 2px solid var(--brand); box-shadow: none;
}
.pq-card:not(.pq-card--featured):first-child .pq-card__cta .cta-btn:hover,
.pq-card__cta .cta-btn.pq-btn-esencial:hover {
  background: var(--brand) !important; color: var(--surface) !important; box-shadow: var(--shadow-md);
}
.pq-card--featured .pq-card__cta .cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important; color: var(--surface) !important; border: none; box-shadow: 0 4px 14px rgba(14,165,233,.35);
}
.pq-card--featured .pq-card__cta .cta-btn:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--primary-800)) !important; box-shadow: 0 6px 20px rgba(14,165,233,.45);
}
.pq-card__cta .cta-btn.pq-btn-integral {
  background: var(--brand) !important; color: var(--surface) !important; border: 2px solid var(--brand); box-shadow: var(--shadow-sm);
}
.pq-card__cta .cta-btn.pq-btn-integral:hover {
  background: var(--brand-mid) !important; border-color: var(--brand-mid); box-shadow: var(--shadow-md);
}

.pq-cmp-label { text-align: center; margin-bottom: 1.25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); }

.pq-tabla { overflow-x: auto; background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-md); margin-bottom: 3rem; }
.pq-tabla table { width: 100%; border-collapse: collapse; font-size: .9125rem; }
.pq-tabla th, .pq-tabla td { padding: .8rem 1.125rem; text-align: left; border-bottom: 1px solid var(--border); }
.pq-tabla thead tr { background: var(--brand); }
.pq-tabla thead th { font-weight: 600; font-size: .875rem; color: var(--surface); padding: 1rem 1.125rem; }
.pq-tabla thead th:first-child { background: transparent; border-bottom: 2px solid var(--border); color: var(--brand); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pq-tabla thead th.pq-col-feat { background: var(--accent); }
.pq-tabla td:first-child { font-weight: 500; color: var(--brand); font-size: .9rem; }
.pq-tabla tbody tr:hover td:not(:first-child) { background: rgba(14,165,233,.04); }
.pq-tabla td.pq-col-feat { background: rgba(14,165,233,.05); border-left: 2px solid rgba(14,165,233,.3); border-right: 2px solid rgba(14,165,233,.3); }
.pq-tabla tr:last-child td.pq-col-feat { border-bottom: 2px solid rgba(14,165,233,.3); }
.pq-check { color: var(--success-light); font-weight: 700; font-size: 1rem; }
.pq-dash { color: var(--slate-300); }
.pq-section { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-mid); background: rgba(15,23,42,.05); padding: .6rem 1.125rem; border-left: 3px solid var(--accent); }
.pq-cta-row td { padding: 1.5rem 1rem !important; text-align: center; background: var(--bg) !important; border-bottom: none; }
.pq-cta-row td:first-child { background: var(--bg) !important; }
.pq-cta-row td.pq-col-feat { background: rgba(14,165,233,.06) !important; }
.pq-tabla tbody tr:last-child td:first-child { border-radius: 0 0 0 14px; }
.pq-tabla tbody tr:last-child td:last-child { border-radius: 0 0 14px 0; }

.pq-bottom-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; margin-bottom: 2rem;
}
.pq-bottom-cta h3 { font-size: 1.5rem; font-weight: 700; color: var(--surface); margin-bottom: .75rem; }
.pq-bottom-cta p { color: rgba(255,255,255,.93); margin-bottom: 1.75rem; font-size: 1rem; line-height: 1.55; }
.pq-bottom-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CTAs sobre fondo oscuro: borde claro legible sin depender de estilos inline */
.pq-bottom-cta .cta-btn--on-dark-outline {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.9) !important;
  box-shadow: none !important;
  border-radius: 9999px;
  padding: .5rem 1rem;
}
.pq-bottom-cta .cta-btn--on-dark-outline:hover {
  background: rgba(255,255,255,0.24) !important;
  border-color: #fff !important;
  color: #fff !important;
}
.pq-bottom-cta .cta-btn--on-dark-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.9) !important;
  box-shadow: none !important;
}
.pq-bottom-cta .cta-btn--on-dark-ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
  color: #fff !important;
}
.pq-bottom-cta .cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pq-trust { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; padding: 1.5rem 0 2rem; }
.pq-trust__item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-secondary); font-weight: 500; }
.pq-trust__item .feather { width: 18px; height: 18px; color: var(--success-light); flex-shrink: 0; }

@media (max-width: 860px) {
  .pq-cards { grid-template-columns: 1fr 1fr; }
  .pq-card--featured { transform: none; }
  .pq-intro h2 { font-size: 1.75rem; }
  .pq-tabs { flex-direction: column; align-items: center; }
  .pq-tab { width: 100%; max-width: 320px; justify-content: center; }
  .pq-bottom-cta h3 { font-size: 1.25rem; }
  .pq-bottom-cta__actions { flex-direction: column; align-items: center; }
  .pq-bottom-cta__actions .cta-btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (max-width: 600px) {
  .pq-cards { grid-template-columns: 1fr; gap: 1rem; }
  .pq-card__head { height: auto; }
  .pq-intro { padding: 2rem .5rem 1.5rem; }
  .pq-intro h2 { font-size: 1.5rem; }
  .pq-intro p { font-size: .95rem; }
  .pq-trust { gap: .75rem 1.5rem; justify-content: flex-start; padding: 1.25rem 0; }
  .pq-trust__item { font-size: .82rem; }
  .pq-cmp-label { font-size: .7rem; }
  .pq-tabla { border-radius: var(--radius-md); }
  .pq-tabla th, .pq-tabla td { padding: .55rem .65rem; font-size: .8rem; }
  .pq-section { padding: .5rem .65rem; font-size: .68rem; }
  .pq-bottom-cta { padding: 2rem 1.25rem; border-radius: var(--radius-lg); }
  .pq-card { padding: 1.5rem 1.25rem; }
}

/* ==========================================================================
   SOPORTE PAGE
   ========================================================================== */
.soporte-wrap { max-width: 720px; margin: 0 auto; padding: 2rem 0; }
.soporte-hero { text-align: center; margin-bottom: 2.5rem; }
.soporte-hero h1 { font-size: 1.75rem; font-weight: 700; color: var(--brand); margin-bottom: .5rem; }
.soporte-hero p { font-size: 1rem; color: var(--text-secondary); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: -1px; overflow: hidden; }
.faq-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.faq-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.faq-item summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: .9375rem;
  color: var(--brand); background: var(--surface); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .feather { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary .feather { transform: rotate(180deg); }
.faq-item div { padding: 0 1.25rem 1rem; color: var(--text-secondary); font-size: .9375rem; line-height: 1.65; border-top: 1px solid var(--border); }
.soporte-contacto { background: var(--bg); border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 2.5rem; }
.soporte-contacto h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; color: var(--brand); }
.soporte-contacto p { margin-bottom: .75rem; font-size: .9375rem; }
.soporte-contacto a { color: var(--brand-mid); font-weight: 500; }

/* ==========================================================================
   FOOTER (inc_footer.php)
   ========================================================================== */
.footer-prefooter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  padding: 2.5rem 1.5rem; margin-top: 4rem;
}
.footer-prefooter__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-prefooter__text { display: flex; flex-direction: column; gap: .25rem; }
.footer-prefooter__text strong { font-size: 1.25rem; font-weight: 700; color: var(--surface); }
.footer-prefooter__text span { font-size: .9rem; color: rgba(255,255,255,.75); }
.footer-prefooter__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.footer-landing { background: var(--slate-950); color: rgba(255,255,255,.85); padding: 3rem 1.5rem 0; }
.footer-landing__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-landing__col { display: flex; flex-direction: column; gap: .6rem; }
.footer-landing__logo {
  font-size: 1.5rem; font-weight: 800; color: var(--surface);
  letter-spacing: -.04em; display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem;
}
.footer-landing__logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success-light)); display: inline-block; flex-shrink: 0;
}
.footer-landing__tagline { font-size: .875rem; line-height: 1.65; opacity: .75; max-width: 300px; margin-bottom: .25rem; }
.footer-landing__badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: .2rem .6rem; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.8);
}
.footer-badge .feather { width: 11px; height: 11px; }
.footer-landing__titulo {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-landing__link {
  color: rgba(255,255,255,.72); text-decoration: none; font-size: .875rem;
  display: inline-flex; align-items: center; gap: .45rem; transition: color .15s; padding: .1rem 0;
}
.footer-landing__link:hover { color: var(--surface); }
.footer-landing__link .feather { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.footer-landing__link--plain { cursor: default; }
.footer-landing__link--plain:hover { color: rgba(255,255,255,.72); }
.footer-landing__access-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9); text-decoration: none; font-size: .85rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: var(--radius-md); transition: var(--transition);
}
.footer-landing__access-btn:hover { background: rgba(255,255,255,.14); color: var(--surface); }
.footer-landing__access-btn .feather { width: 15px; height: 15px; }
.footer-landing__bottom { padding: 1.25rem 0; }
.footer-landing__bottom-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-landing__legal { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.footer-landing__legal a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.footer-landing__legal a:hover { color: rgba(255,255,255,.8); }
.footer-sep { opacity: .4; }

@media (max-width: 900px) {
  .footer-landing__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-landing__col--brand { grid-column: 1/-1; }
  .footer-prefooter__inner { flex-direction: column; text-align: center; }
  .footer-prefooter__actions { justify-content: center; }
  .hero__titulo { font-size: 1.75rem; }
  .beneficios { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-landing__grid { grid-template-columns: 1fr; }
  .footer-landing__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .pq-intro h2 { font-size: 1.35rem; }
  .pq-tabla th, .pq-tabla td { padding: .4rem .5rem; font-size: .75rem; }
  .pq-cta-row td .cta-btn { padding: .55rem .75rem; font-size: .82rem; }
  .pq-trust { flex-direction: column; gap: .5rem; }
  .pq-bottom-cta h3 { font-size: 1.1rem; }
  .pq-bottom-cta p { font-size: .875rem; }
}

/* ==========================================================================
   AUTH CARD – Login / Registro / Recuperar password
   ========================================================================== */
.auth-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem 1rem 3rem; min-height: 280px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--blanco);
  padding: 2.5rem 2rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--borde);
  box-shadow: 0 8px 32px rgba(12,25,41,.08);
}
.auth-card__logo {
  display: flex; flex-direction: row; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem;
}
.auth-card__logo-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--verde));
  color: #fff; border-radius: 12px;
}
.auth-card__logo-icon .feather,
.auth-card__logo-icon[data-feather] { width: 24px; height: 24px; }
.auth-card__title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
  color: var(--azul); letter-spacing: -.03em; margin: 0;
}
.auth-card__subtitle {
  font-size: .875rem; color: var(--gris); margin: .2rem 0 0; line-height: 1.5;
}
.auth-card .form-group { margin-bottom: 1.125rem; }
.auth-card .form-label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--azul);
  margin-bottom: .35rem; letter-spacing: .02em;
}
.auth-card .form-control {
  width: 100%; padding: .7rem .875rem; font-size: .9rem;
  border: 1.5px solid var(--borde); border-radius: 10px;
  background: var(--blanco); color: var(--azul);
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.auth-card .form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.auth-card .form-control::placeholder { color: #94a3b8; }
.auth-card .btn-primary {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.25rem; font-size: .95rem; font-weight: 700;
  background: var(--azul); color: #fff; border: none; border-radius: 10px;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s;
  font-family: var(--font-body); margin-top: .25rem;
  opacity: 1;
  visibility: visible;
}
.auth-card .btn-primary:hover {
  background: var(--azul-med);
  box-shadow: 0 4px 14px rgba(12,25,41,.2);
  transform: translateY(-1px);
}
.auth-card .btn-primary .feather { width: 20px; height: 20px; }
.auth-card__links { text-align: center; margin-top: 1rem; }
.auth-card__links a {
  color: var(--gris); font-size: .875rem; text-decoration: none;
  transition: color .15s;
}
.auth-card__links a:hover { color: var(--azul); }
.auth-card__footer { text-align: center; margin-top: 1rem; }
.auth-card__footer a {
  color: #94a3b8; font-size: .8rem; text-decoration: none;
  transition: color .15s;
}
.auth-card__footer a:hover { color: var(--gris); }
.auth-card .alert {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .75rem 1rem; border-radius: 10px;
  font-size: .85rem; line-height: 1.45; margin-bottom: 1.25rem;
}
.auth-card .alert-danger {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
}
.auth-card .alert .feather { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 480px) {
  .auth-wrap { padding: 1rem 0.75rem 2rem; }
  .auth-card {
    width: 100%;
    max-width: none;
    min-width: auto;
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 12px;
    margin: 0 auto;
  }
  .auth-card__title { font-size: 1.2rem; }
  .auth-card__subtitle { font-size: .8rem; }
  .auth-card__logo { margin-bottom: 1.25rem; gap: 0.75rem; }
  .auth-card__logo-icon { width: 40px; height: 40px; }
  .auth-card .form-control { padding: 0.65rem 0.75rem; font-size: 0.9rem; }
  .auth-card .btn-primary { padding: 0.7rem 1rem; font-size: 0.9rem; }
  .auth-card .alert { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
  .auth-card__links { margin-top: 0.75rem; }
  .auth-card__footer { margin-top: 0.75rem; }
}
