/* ============================================================
   Cardiólogo Querétaro — Landing (design system implementation)
   Scoped to #cqlanding so it never collides with the theme.
   Tokens + layout (lp-*) + components (cq-*). Self-hosted fonts.
   (c) KanZansio.Digital
   ============================================================ */

/* ---- Fonts: self-hosted (no Google Fonts). DM Serif Italic omitted (unused). ---- */
@font-face{
  font-family:'DM Serif Display';
  src:url('/wp-content/uploads/2026/04/DMSerifDisplay-Regular.ttf') format('truetype');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'DM Sans';
  src:url('/wp-content/uploads/2026/04/DMSans-VariableFont_opszwght.ttf') format('truetype');
  font-weight:100 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'DM Sans';
  src:url('/wp-content/uploads/2026/04/DMSans-Italic-VariableFont_opszwght.ttf') format('truetype');
  font-weight:100 900;font-style:italic;font-display:swap;
}

/* ============================================================
   TOKENS (scoped)
   ============================================================ */
#cqlanding{
  /* Brand — Navy */
  --cq-navy-900:#07273e; --cq-navy-800:#0c3b5e; --cq-navy-600:#145a8a;
  --cq-navy-100:#e8f1f8; --cq-navy-050:#f5f8fc;
  /* Brand — Teal */
  --cq-teal-800:#006d60; --cq-teal-700:#007d6d; --cq-teal-500:#00a38c; --cq-teal-050:#eef7f4;
  /* Ink */
  --cq-ink-900:#1b2736; --cq-ink-600:#42576d; --cq-ink-400:#54657a; --cq-white:#ffffff;
  /* Tints */
  --cq-tint-rose:#fef0f0; --cq-tint-blue:#eef6ff; --cq-tint-amber:#fef5ee; --cq-tint-mint:#f0faf7;
  --cq-star:#f5a623;
  /* Lines */
  --cq-line:rgba(12,59,94,.08); --cq-line-strong:rgba(12,59,94,.18);

  /* Semantic aliases */
  --color-primary:var(--cq-navy-800); --color-primary-strong:var(--cq-navy-900); --color-primary-soft:var(--cq-navy-600);
  --color-accent:var(--cq-teal-700); --color-accent-bright:var(--cq-teal-500); --color-accent-pressed:var(--cq-teal-800);
  --surface-page:var(--cq-navy-050); --surface-card:var(--cq-white); --surface-soft:var(--cq-navy-100); --surface-soft-2:var(--cq-teal-050);
  --text-strong:var(--cq-navy-800); --text-body:var(--cq-ink-600); --text-default:var(--cq-ink-900); --text-muted:var(--cq-ink-400); --text-on-dark:#fff;
  --border-hairline:var(--cq-line); --border-control:var(--cq-line-strong);
  --grad-cta:linear-gradient(135deg,var(--cq-navy-800) 0%,var(--cq-navy-600) 100%);
  --grad-mark:linear-gradient(135deg,#eff6fb 0%,#ffffff 100%);

  /* Type */
  --font-display:'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display:clamp(32px,4.2vw,60px); --fs-h2:clamp(28px,3.6vw,50px); --fs-h3:clamp(20px,2vw,30px);
  --fs-lead:clamp(16px,1.4vw,21px); --fs-body:clamp(14px,1vw,16px); --fs-small:clamp(12px,.85vw,14px);
  --lh-tight:1.08; --lh-snug:1.25; --lh-body:1.65; --ls-title:-.02em; --ls-kicker:.16em; --ls-badge:.08em;

  /* Spacing / radii */
  --radius-sm:14px; --radius:22px; --radius-lg:32px; --radius-pill:999px;
  --gutter:clamp(16px,3vw,48px); --section-py:clamp(48px,7vw,110px);
  --gap-card:clamp(14px,1.5vw,22px); --gap-panel:clamp(18px,2vw,28px);
  --site-max:1480px; --shell-pad:clamp(18px,4vw,56px); --header-h:50px; --control-h:48px; --control-h-sm:42px; --control-h-pill:40px;

  /* Elevation / motion */
  --shadow-sm:0 2px 12px rgba(12,59,94,.05); --shadow-md:0 14px 40px rgba(12,59,94,.10); --shadow-lg:0 20px 70px rgba(12,59,94,.14);
  --shadow-accent:0 12px 28px rgba(0,125,109,.24); --shadow-cta:0 16px 40px rgba(0,0,0,.14);
  --ease:cubic-bezier(.22,.61,.36,1); --dur-fast:.22s; --dur:.3s; --dur-reveal:.55s;

  /* Container basics */
  font-family:var(--font-body); color:var(--text-default); line-height:var(--lh-body);
  background:var(--surface-page); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  width:100%; max-width:100%; overflow:hidden;
}
@media (min-width:1800px){ #cqlanding{ --site-max:1640px; } }
@media (min-width:2400px){ #cqlanding{ --site-max:1800px; } }

/* ============================================================
   RESET (scoped)
   ============================================================ */
#cqlanding, #cqlanding *, #cqlanding *::before, #cqlanding *::after{ box-sizing:border-box; }
#cqlanding h1,#cqlanding h2,#cqlanding h3,#cqlanding h4{
  font-family:var(--font-display); color:var(--text-strong); line-height:var(--lh-tight);
  letter-spacing:var(--ls-title); font-weight:400; margin:0;
}
#cqlanding p{ margin:0; text-wrap:pretty; }
#cqlanding a{ color:inherit; text-decoration:none; }
#cqlanding img,#cqlanding svg,#cqlanding iframe{ display:block; max-width:100%; }
#cqlanding img{ height:auto; }
#cqlanding ul{ list-style:none; margin:0; padding:0; }
#cqlanding button{ font:inherit; cursor:pointer; border:none; background:none; color:inherit; }
#cqlanding :focus-visible{ outline:3px solid var(--color-accent-bright); outline-offset:3px; border-radius:6px; }
#cqlanding section[id]{ scroll-margin-top:calc(var(--header-h) + 16px); }

/* Reveal (visible end-state is base → print/no-JS show content) */
#cqlanding .cq-reveal{ opacity:1; transform:none; }
@media (prefers-reduced-motion:no-preference){
  #cqlanding.js-reveal .cq-reveal{ opacity:0; transform:translateY(24px);
    transition:opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
  #cqlanding.js-reveal .cq-reveal.is-visible{ opacity:1; transform:none; }
}

/* ============================================================
   LAYOUT (lp-*)
   ============================================================ */
#cqlanding .lp-shell{ width:100%; max-width:var(--site-max); margin-inline:auto; padding-inline:var(--shell-pad); }
#cqlanding .lp-section{ padding:var(--section-py) 0; }
#cqlanding .lp-section--soft{ background:linear-gradient(180deg,var(--surface-card) 0%,var(--surface-page) 100%); }
#cqlanding .lp-center{ text-align:center; margin-top:28px; }
#cqlanding .lp-stack{ display:flex; flex-direction:column; gap:12px; }
#cqlanding .lp-stack-lg{ display:flex; flex-direction:column; gap:18px; }
#cqlanding .lp-grid-2{ display:grid; grid-template-columns:1fr; gap:var(--gap-panel); }
#cqlanding .lp-grid-4{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:var(--gap-card); }
@media (min-width:880px){ #cqlanding .lp-grid-2{ grid-template-columns:1fr 1fr; } }
#cqlanding .lp-panel-title{ font-family:var(--font-display); color:var(--color-primary); font-size:var(--fs-h3); line-height:1.08; margin:0 0 8px; }
#cqlanding .lp-panel-sub{ color:var(--text-muted); margin:0 0 22px; font-size:var(--fs-body); }
#cqlanding .lp-note{ margin-top:18px; padding:15px 16px; border-radius:16px; background:var(--surface-soft-2); border-left:4px solid var(--color-accent); color:#0f5b52; font-size:var(--fs-body); }

/* ============================================================
   COMPONENTS (cq-*)
   ============================================================ */
/* Buttons */
#cqlanding .cq-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius:var(--radius-pill); padding:clamp(13px,1.1vw,16px) clamp(20px,1.8vw,28px);
  font-weight:800; font-size:clamp(14px,1vw,15px); min-height:var(--control-h); white-space:nowrap;
  transition:transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
#cqlanding .cq-btn:hover{ transform:translateY(-2px); }
#cqlanding .cq-btn--sm{ padding:11px 18px; font-size:13px; min-height:var(--control-h-sm); }
#cqlanding .cq-btn--primary{ background:var(--color-accent); color:#fff; box-shadow:var(--shadow-accent); }
#cqlanding .cq-btn--primary:hover{ background:var(--color-accent-pressed); }
#cqlanding .cq-btn--outline{ background:transparent; color:var(--color-primary); border:2px solid var(--border-control); }
#cqlanding .cq-btn--outline:hover{ background:var(--color-primary); color:#fff; border-color:var(--color-primary); }
#cqlanding .cq-btn--on-light{ background:#fff; color:var(--color-primary); box-shadow:var(--shadow-cta); }
#cqlanding .cq-btn--on-light:hover{ background:#f3f6f9; }
#cqlanding .cq-btn--on-dark{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,.24); }
#cqlanding .cq-btn--on-dark:hover{ background:rgba(255,255,255,.10); }
#cqlanding .cq-btn svg{ flex-shrink:0; }

/* Badge / Kicker / Chip */
#cqlanding .cq-badge{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:var(--radius-pill);
  background:var(--surface-soft-2); color:var(--color-accent); font-size:12px; font-weight:800; letter-spacing:var(--ls-badge); text-transform:uppercase; }
#cqlanding .cq-kicker{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:var(--ls-kicker); text-transform:uppercase; color:var(--color-accent); margin-bottom:12px; }
#cqlanding .cq-chip{ display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--border-hairline); color:var(--text-body);
  border-radius:var(--radius-pill); padding:10px 14px; font-size:13px; font-weight:700; box-shadow:var(--shadow-sm); transition:border-color .2s var(--ease), color .2s var(--ease); }
#cqlanding .cq-chip:hover{ border-color:rgba(0,125,109,.22); color:var(--color-accent); }

/* Card */
#cqlanding .cq-card{ background:var(--surface-card); border:1px solid var(--border-hairline); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:clamp(22px,2.2vw,40px); }

/* Section head */
#cqlanding .cq-section-head{ text-align:center; max-width:min(820px,90%); margin:0 auto clamp(28px,4vw,48px); }
#cqlanding .cq-section-head .cq-section-title{ font-size:var(--fs-h2); margin-bottom:12px; }
#cqlanding .cq-section-head p{ color:var(--text-body); font-size:var(--fs-lead); }

/* Alert card */
#cqlanding .cq-alert-card{ background:var(--surface-card); border:1px solid var(--border-hairline); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:clamp(20px,1.8vw,28px); }
#cqlanding .cq-alert-card__top{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
#cqlanding .cq-alert-card__icon{ width:52px; height:52px; border-radius:16px; display:grid; place-items:center; flex-shrink:0; }
#cqlanding .cq-alert-card--rose  .cq-alert-card__icon{ background:var(--cq-tint-rose);  color:#d64545; }
#cqlanding .cq-alert-card--blue  .cq-alert-card__icon{ background:var(--cq-tint-blue);  color:#2f6fb8; }
#cqlanding .cq-alert-card--amber .cq-alert-card__icon{ background:var(--cq-tint-amber); color:#c97a25; }
#cqlanding .cq-alert-card--mint  .cq-alert-card__icon{ background:var(--cq-tint-mint);  color:var(--color-accent); }
#cqlanding .cq-alert-card h3{ color:var(--color-primary); font-size:var(--fs-h3); line-height:1.15; }
#cqlanding .cq-alert-card p{ color:var(--text-body); font-size:var(--fs-body); }

/* Service item */
#cqlanding .cq-service-item{ display:flex; gap:12px; align-items:flex-start; background:var(--surface-soft); border-radius:16px; padding:14px; }
#cqlanding .cq-service-item__check{ width:24px; height:24px; border-radius:50%; background:var(--color-accent); color:#fff; font-weight:900; display:grid; place-items:center; font-size:12px; flex-shrink:0; margin-top:1px; }
#cqlanding .cq-service-item span{ color:var(--text-body); font-size:var(--fs-body); }
#cqlanding .cq-service-item strong{ color:var(--color-primary); }

/* Price row */
#cqlanding .cq-price-row{ display:grid; grid-template-columns:1fr; gap:12px; padding:18px 0; }
#cqlanding .cq-price-row--divider{ border-bottom:1px solid var(--border-hairline); }
#cqlanding .cq-price-row strong{ display:block; font-size:clamp(15px,1.1vw,18px); color:var(--text-default); }
#cqlanding .cq-price-row small{ display:block; margin-top:4px; color:var(--text-muted); font-size:clamp(12px,.85vw,14px); }
#cqlanding .cq-price-row__line{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
#cqlanding .cq-price-row__value{ font-family:var(--font-display); font-size:clamp(24px,2vw,34px); color:var(--color-primary); line-height:1; }

/* Bullet */
#cqlanding .cq-bullet{ display:flex; gap:14px; align-items:flex-start; }
#cqlanding .cq-bullet__dot{ width:12px; height:12px; border-radius:50%; background:var(--color-primary); margin-top:7px; flex-shrink:0; }
#cqlanding .cq-bullet--accent .cq-bullet__dot{ background:var(--color-accent); }
#cqlanding .cq-bullet strong{ display:block; color:var(--text-default); font-size:clamp(15px,1vw,17px); line-height:1.25; }
#cqlanding .cq-bullet span{ display:block; color:var(--text-muted); font-size:var(--fs-body); margin-top:3px; }

/* Testimonial */
#cqlanding .cq-testimonial{ background:var(--surface-card); border:1px solid var(--border-hairline); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:clamp(20px,1.8vw,28px); }
#cqlanding .cq-testimonial__stars{ display:flex; gap:2px; color:var(--cq-star); margin-bottom:12px; }
#cqlanding .cq-testimonial__quote{ color:var(--text-body); font-size:var(--fs-body); font-style:italic; margin-bottom:14px; }
#cqlanding .cq-testimonial__author{ color:var(--color-primary); font-weight:800; font-size:13px; }

/* FAQ */
#cqlanding .cq-faq-item{ background:#fff; border:1px solid var(--border-hairline); border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm); }
#cqlanding .cq-faq-item summary{ cursor:pointer; list-style:none; padding:18px 48px 18px 18px; font-size:clamp(14px,1vw,16px); font-weight:800; color:var(--text-default); position:relative; }
#cqlanding .cq-faq-item summary::-webkit-details-marker{ display:none; }
#cqlanding .cq-faq-item summary::after{ content:'+'; position:absolute; right:18px; top:50%; transform:translateY(-50%); color:var(--color-accent); font-size:24px; font-weight:400; }
#cqlanding .cq-faq-item[open] summary::after{ content:'−'; }
#cqlanding .cq-faq-item__body{ padding:0 18px 18px; color:var(--text-body); font-size:var(--fs-body); }

/* ============================================================
   GLOBAL HEADER (cql-*) — brand left, INLINE nav on desktop,
   hamburger dropdown on mobile, "Agendar cita" CTA always in the bar.
   Behaviour: fixed 50px, glass on scroll, hide-on-down / show-on-up.
   Portaled to <body> by landing.js → selectors live at body level.
   ============================================================ */
#cql-header,
#cql-menu-panel,
#cql-menu-scrim{
  --cqlh-navy-800:#0c3b5e; --cqlh-navy-600:#145a8a;
  --cqlh-teal-700:#007d6d; --cqlh-teal-500:#00a38c;
  --cqlh-ink-400:#54657a;
  --cqlh-line:rgba(12,59,94,.10); --cqlh-glass:rgba(255,255,255,.88);
  --cqlh-font-display:'DM Serif Display', Georgia, 'Times New Roman', serif;
  --cqlh-font-body:'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cqlh-ease:cubic-bezier(.22,.61,.36,1); --cqlh-dur:.34s;
  --cqlh-panel-top:54px;
}
#cql-header{
  position:fixed; top:0; left:0; right:0; height:50px; z-index:2147483000;
  font-family:var(--cqlh-font-body); background:transparent; border-bottom:1px solid transparent;
  transform:translateY(0);
  transition:transform var(--cqlh-dur) var(--cqlh-ease), background-color var(--cqlh-dur) var(--cqlh-ease),
             border-color var(--cqlh-dur) var(--cqlh-ease), box-shadow var(--cqlh-dur) var(--cqlh-ease),
             backdrop-filter var(--cqlh-dur) var(--cqlh-ease);
  background-image:linear-gradient(180deg, rgba(20,90,138,.05) 0%, rgba(0,163,140,.03) 100%);
}
#cql-header.is-stuck{
  background-color:var(--cqlh-glass); background-image:none; border-bottom-color:var(--cqlh-line);
  backdrop-filter:saturate(160%) blur(14px); -webkit-backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 8px 30px rgba(12,59,94,.08);
}
#cql-header.is-hidden{ transform:translateY(-110%); }
#cql-header.is-hidden ~ #cql-menu-panel,
#cql-header.is-hidden ~ #cql-menu-scrim{ transform:translateY(-110%); }
.cql-header-inner{
  height:100%; width:100%; max-width:1480px; margin-inline:auto; padding-inline:clamp(14px,4vw,56px);
  display:flex; align-items:center; gap:clamp(10px,2vw,24px);
}
/* Brand (left) — shrinks (ellipsis) so the actions NEVER clip, at any width */
.cql-brand{ flex:0 1 auto; display:inline-flex; align-items:center; gap:10px; text-decoration:none; min-width:0; overflow:hidden; line-height:1; }
.cql-mark{ width:30px; height:30px; flex-shrink:0; border-radius:9px; background:linear-gradient(135deg,#eff6fb 0%,#ffffff 100%); border:1px solid var(--cqlh-line); box-shadow:0 2px 12px rgba(12,59,94,.05); position:relative; }
.cql-mark::after{ content:''; position:absolute; inset:6px; -webkit-mask:url(heart-mark.svg) center/contain no-repeat; mask:url(heart-mark.svg) center/contain no-repeat; background:var(--cqlh-navy-800); }
.cql-brand-text{ display:flex; flex-direction:column; min-width:0; }
.cql-brand-name{ font-family:var(--cqlh-font-display); color:var(--cqlh-navy-800); font-size:clamp(15px,1.3vw,18px); line-height:1; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cql-brand-sub{ color:var(--cqlh-ink-400); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; margin-top:2px; white-space:nowrap; }
/* Inline desktop nav (center) */
.cql-nav-desktop{ display:none; flex:1 1 auto; justify-content:center; align-items:center; gap:clamp(12px,1.5vw,26px); min-width:0; }
.cql-nav-link{ color:var(--cqlh-navy-800); font-family:var(--cqlh-font-body); font-weight:700; font-size:clamp(13px,.95vw,15px); text-decoration:none; white-space:nowrap; transition:color .18s var(--cqlh-ease); }
.cql-nav-link:hover{ color:var(--cqlh-teal-700); }
/* Right actions: Agendar (always) + hamburger (mobile only) */
.cql-header-actions{ flex:0 0 auto; margin-left:auto; display:inline-flex; align-items:center; gap:10px; }
.cql-agendar{ display:inline-flex; align-items:center; gap:7px; padding:9px 16px; border-radius:999px; font-family:var(--cqlh-font-body); font-weight:800; font-size:clamp(12.5px,.95vw,14px); text-decoration:none; color:#fff; background:var(--cqlh-teal-700); box-shadow:0 8px 22px rgba(0,125,109,.22); white-space:nowrap; transition:background-color .18s var(--cqlh-ease), transform .18s var(--cqlh-ease); }
.cql-agendar:hover{ background:var(--cqlh-teal-500); }
.cql-agendar:active{ transform:translateY(1px); }
.cql-agendar svg{ flex-shrink:0; }
/* Hamburger (mobile only) */
.cql-ham-wrap{ display:flex; }
.cql-ham-toggle{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.cql-ham{ display:grid; place-items:center; width:38px; height:38px; border-radius:11px; cursor:pointer; color:var(--cqlh-navy-800); background:rgba(232,241,248,.55); border:1px solid transparent; transition:background-color .2s var(--cqlh-ease), border-color .2s var(--cqlh-ease); -webkit-tap-highlight-color:transparent; }
.cql-ham:hover{ background:#e8f1f8; border-color:var(--cqlh-line); }
.cql-ham-toggle:focus-visible + .cql-ham{ outline:3px solid var(--cqlh-teal-500); outline-offset:2px; }
.cql-ham-svg{ display:block; overflow:visible; }
.cql-ham-line{ stroke:currentColor; stroke-width:2; stroke-linecap:round; transform-origin:12px 12px; transition:transform var(--cqlh-dur) var(--cqlh-ease), opacity calc(var(--cqlh-dur) * .6) var(--cqlh-ease); }
.cql-ham-toggle:checked + .cql-ham{ background:#e8f1f8; color:var(--cqlh-teal-700); }
.cql-ham-toggle:checked + .cql-ham .cql-ham-line--top{ transform:translateY(5px) rotate(45deg); }
.cql-ham-toggle:checked + .cql-ham .cql-ham-line--mid{ opacity:0; transform:scaleX(.2); }
.cql-ham-toggle:checked + .cql-ham .cql-ham-line--bottom{ transform:translateY(-5px) rotate(-45deg); }
/* Scrim + dropdown panel (mobile) */
.cql-menu-scrim{ position:fixed; inset:0; z-index:2147482000; background:rgba(7,39,62,.34); opacity:0; pointer-events:none; transition:opacity var(--cqlh-dur) var(--cqlh-ease); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.cql-menu-scrim.is-open{ opacity:1; pointer-events:auto; }
.cql-menu-panel{ position:fixed; top:var(--cqlh-panel-top); right:clamp(12px,4vw,40px); z-index:2147483001; width:clamp(240px,80vw,320px); max-width:calc(100vw - 24px); background:rgba(255,255,255,.97); -webkit-backdrop-filter:saturate(160%) blur(18px); backdrop-filter:saturate(160%) blur(18px); border:1px solid var(--cqlh-line); border-radius:18px; box-shadow:0 24px 60px rgba(12,59,94,.20); overflow:hidden; max-height:0; opacity:0; pointer-events:none; transform-origin:top right; transition:max-height var(--cqlh-dur) var(--cqlh-ease), opacity calc(var(--cqlh-dur) * .7) var(--cqlh-ease), transform var(--cqlh-dur) var(--cqlh-ease); }
.cql-menu-panel.is-open{ max-height:min(80vh, 520px); opacity:1; pointer-events:auto; overflow:auto; }
.cql-menu-list{ list-style:none; margin:0; padding:8px; display:flex; flex-direction:column; gap:2px; }
.cql-menu-item{ margin:0; }
.cql-menu-link{ display:block; padding:12px 14px; border-radius:12px; font-family:var(--cqlh-font-body); font-weight:700; font-size:15px; text-decoration:none; color:var(--cqlh-navy-800); transition:background-color .18s var(--cqlh-ease), color .18s var(--cqlh-ease); }
.cql-menu-link:hover,
.cql-menu-link:focus-visible{ background:#eef6ff; color:var(--cqlh-teal-700); outline:none; }
/* Desktop ≥1024: inline nav visible, hamburger hidden. Mobile: opposite. */
@media (min-width:1024px){
  .cql-nav-desktop{ display:flex; }
  .cql-ham-wrap{ display:none; }
}
@media (max-width:1023px){
  .cql-nav-desktop{ display:none; }
}
/* Mobile: compact padding + button. The base flex layout already guarantees the
   actions never clip (brand shrinks/truncates first). */
@media (max-width:1023px){
  .cql-header-inner{ padding-inline:clamp(14px,4vw,28px); }
  .cql-agendar{ padding:8px 12px; font-size:13px; gap:6px; }
}
@media (max-width:560px){
  .cql-brand-sub{ display:none; }
  .cql-agendar-cita{ display:none; }   /* "Agendar cita" → "Agendar" */
}
@media (max-width:360px){
  .cql-agendar{ padding:8px 11px; }
}
body.cql-has-header{ padding-top:50px; }
@media (prefers-reduced-motion:reduce){
  #cql-header, #cql-header.is-hidden, .cql-ham-line, .cql-menu-panel, .cql-menu-scrim{ transition:none !important; }
  #cql-header.is-hidden{ transform:translateY(-110%); }
}

/* ============================================================
   HERO
   ============================================================ */
#cqlanding .lp-hero{ position:relative; overflow:hidden; padding:clamp(20px,5vw,48px) 0 clamp(40px,7vw,80px); }
#cqlanding .lp-hero::before{ content:''; position:absolute; inset:auto auto -140px -120px; width:clamp(220px,28vw,420px); height:clamp(220px,28vw,420px); border-radius:50%; background:radial-gradient(circle,rgba(0,163,140,.14) 0%,rgba(0,163,140,0) 70%); pointer-events:none; }
#cqlanding .lp-hero::after{ content:''; position:absolute; inset:-120px -100px auto auto; width:clamp(260px,32vw,460px); height:clamp(260px,32vw,460px); border-radius:50%; background:radial-gradient(circle,rgba(20,90,138,.16) 0%,rgba(20,90,138,0) 72%); pointer-events:none; }
#cqlanding .lp-hero-grid{ display:grid; grid-template-columns:1fr; gap:clamp(24px,4vw,56px); align-items:center; }
#cqlanding .lp-hero-copy{ order:2; min-width:0; }
#cqlanding .lp-hero-media{ order:1; min-width:0; }
#cqlanding .lp-hero-title{ font-family:var(--font-display); color:var(--color-primary); font-size:var(--fs-display); line-height:1.06; letter-spacing:-.02em; max-width:20ch; margin:clamp(10px,1.4vw,16px) 0 clamp(12px,1.4vw,18px); text-wrap:balance; }
#cqlanding .lp-hero-text{ font-size:var(--fs-lead); color:var(--text-body); max-width:min(56ch,100%); margin:0 0 clamp(16px,1.6vw,22px); }
#cqlanding .lp-hero-text strong{ color:var(--color-primary); }
#cqlanding .lp-hero-points{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:clamp(10px,1vw,14px); margin:0 0 clamp(16px,1.8vw,24px); }
#cqlanding .lp-point{ display:flex; align-items:flex-start; gap:12px; background:rgba(255,255,255,.72); border:1px solid var(--border-hairline); border-radius:18px; padding:clamp(11px,1vw,14px) clamp(13px,1.1vw,16px); box-shadow:var(--shadow-sm); }
#cqlanding .lp-point-icon{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--surface-soft-2); color:var(--color-accent); flex-shrink:0; }
#cqlanding .lp-point strong{ display:block; color:var(--color-primary); font-size:clamp(14px,1vw,16px); line-height:1.25; }
#cqlanding .lp-point span{ display:block; color:var(--text-muted); font-size:clamp(12px,.85vw,14px); margin-top:2px; }
#cqlanding .lp-hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:clamp(14px,1.4vw,20px); }
#cqlanding .lp-hero-links{ display:flex; flex-wrap:wrap; gap:10px; }
#cqlanding .lp-hero-photo{ position:relative; width:100%; max-width:clamp(360px,40vw,560px); margin-inline:auto; aspect-ratio:900/1125; border-radius:clamp(22px,2vw,34px); overflow:hidden; background:var(--surface-soft); box-shadow:var(--shadow-lg); border:5px solid rgba(255,255,255,.96); }
#cqlanding .lp-hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; }
#cqlanding .lp-hero-photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(12,59,94,.16),rgba(12,59,94,0) 45%); pointer-events:none; }
#cqlanding .lp-hero-stamp{ position:absolute; left:clamp(14px,1.5vw,22px); bottom:clamp(14px,1.5vw,22px); background:rgba(255,255,255,.95); color:var(--color-primary); border:1px solid var(--border-hairline); border-radius:18px; padding:clamp(10px,1vw,14px) clamp(12px,1.2vw,16px); box-shadow:var(--shadow-md); backdrop-filter:blur(12px); max-width:calc(100% - 28px); z-index:2; pointer-events:none; }
#cqlanding .lp-hero-stamp strong{ display:block; font-size:clamp(13px,.95vw,15px); line-height:1.2; }
#cqlanding .lp-hero-stamp span{ display:block; font-size:clamp(11px,.8vw,13px); color:var(--text-muted); margin-top:3px; }
@media (min-width:880px){
  #cqlanding .lp-hero-grid{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); }
  #cqlanding .lp-hero-copy{ order:1; }
  #cqlanding .lp-hero-media{ order:2; }
}
@media (min-width:1024px){
  #cqlanding .lp-hero{ min-height:calc(100svh - var(--header-h)); display:flex; align-items:center; padding:clamp(12px,2vw,28px) 0 clamp(20px,2.5vw,40px); }
  #cqlanding .lp-hero-grid{ width:100%; }
  #cqlanding .lp-hero-photo{ width:100%; max-width:clamp(320px,34vw,520px); max-height:calc(100svh - var(--header-h) - clamp(60px,8vh,120px)); }
}
@media (min-width:1024px) and (max-height:780px){
  #cqlanding .lp-hero-points{ display:none; }
  #cqlanding .lp-hero-title{ font-size:clamp(30px,3.4vw,50px); }
}
@media (min-width:1024px) and (max-height:640px){
  #cqlanding .lp-hero-links{ display:none; }
}
@media (max-width:860px){
  #cqlanding .lp-hero{ min-height:calc(100svh - var(--header-h)); display:flex; align-items:center; padding:16px 0 24px; }
  #cqlanding .lp-hero-grid{ width:100%; gap:16px; }
  #cqlanding .lp-hero-title{ font-size:clamp(25px,6.8vw,34px); max-width:24ch; margin:6px 0 10px; }
  #cqlanding .lp-hero-text{ font-size:var(--fs-body); margin-bottom:14px; }
  #cqlanding .lp-hero-points{ grid-template-columns:1fr; gap:8px; margin-bottom:12px; }
  #cqlanding .lp-point{ padding:9px 12px; }
  #cqlanding .lp-hero-links{ display:none; }       /* chips: redundantes con el menú en móvil */
  #cqlanding .lp-hero-photo{ max-width:min(62%,250px); }
}
@media (max-width:860px) and (max-height:820px){
  #cqlanding .lp-hero-points{ display:none; }       /* en teléfonos cortos, prioriza título + CTA */
}

/* ============================================================
   UBICACIÓN
   ============================================================ */
#cqlanding .lp-address{ color:var(--text-body); font-size:var(--fs-body); line-height:1.7; margin-bottom:18px; }
#cqlanding .lp-address strong{ color:var(--color-primary); }
#cqlanding .lp-map{ width:100%; aspect-ratio:4/3; border-radius:18px; overflow:hidden; border:1px solid var(--border-hairline); background:var(--surface-soft); }
#cqlanding .lp-map iframe{ width:100%; height:100%; border:0; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
#cqlanding .lp-cta{ padding:0 0 var(--section-py); }
#cqlanding .lp-cta-box{ position:relative; overflow:hidden; background:var(--grad-cta); border-radius:clamp(22px,2.5vw,38px); padding:clamp(30px,4vw,68px) clamp(22px,3vw,56px); color:#fff; box-shadow:var(--shadow-lg); }
#cqlanding .lp-cta-box::before{ content:''; position:absolute; width:clamp(180px,22vw,320px); height:clamp(180px,22vw,320px); border-radius:50%; right:-80px; top:-80px; background:rgba(255,255,255,.06); }
#cqlanding .lp-cta-box::after{ content:''; position:absolute; width:clamp(140px,18vw,240px); height:clamp(140px,18vw,240px); border-radius:50%; left:-50px; bottom:-50px; background:rgba(0,163,140,.18); }
#cqlanding .lp-cta-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr; gap:24px; align-items:center; }
#cqlanding .lp-kicker-light{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#b9fff2; margin-bottom:12px; }
#cqlanding .lp-cta-title{ font-family:var(--font-display); color:#fff; font-size:var(--fs-h2); line-height:1.08; margin:0 0 12px; }
#cqlanding .lp-cta-copy p{ color:rgba(255,255,255,.86); font-size:var(--fs-body); max-width:620px; margin:0; }
#cqlanding .lp-cta-meta{ margin-top:14px; color:rgba(255,255,255,.75); font-size:var(--fs-body); }
#cqlanding .lp-cta-actions{ display:flex; flex-wrap:wrap; gap:12px; }
@media (min-width:880px){ #cqlanding .lp-cta-grid{ grid-template-columns:1.15fr .85fr; } }
#cqlanding .lp-footer{ border-top:1px solid var(--border-hairline); text-align:center; padding:28px 16px 34px; color:var(--text-muted); font-size:12px; line-height:1.75; }
#cqlanding .lp-footer a{ text-decoration:underline; }
