/* =========================================================
   Dra. Violeta Jiménez — Landing
   Sistema: azul marino (primario) + turquesa (acento) + blanco
   Tipografía: Figtree (títulos) / Noto Sans (texto)
   ========================================================= */

:root {
  /* Color — tokens semánticos */
  --ink: #0b1f3a;            /* títulos, 16.5:1 sobre blanco */
  --primary: #12376b;        /* botones, 11.8:1 */
  --primary-hover: #0e2c57;
  --primary-deep: #0b2447;   /* fondos oscuros */
  --accent: #1c8fa8;         /* decorativo (logo) */
  --accent-text: #0f6f87;    /* texto/enlaces sobre claro, 5.8:1 */
  --accent-light: #5fd0e6;   /* texto sobre marino, 7.7:1 */
  --sky-50: #f0f7fa;
  --sky-100: #dfeef4;
  --gray-50: #f6f8fa;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --text: #475569;           /* 7.6:1 */
  --white: #ffffff;
  --wa: #0e7a5a;             /* WhatsApp, texto blanco 5.3:1 */
  --wa-hover: #0b664b;
  --error: #b42318;

  /* Tipografía */
  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado (base 4/8) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Radio / sombra / movimiento */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(11 31 58 / .06), 0 2px 8px rgb(11 31 58 / .05);
  --shadow-md: 0 4px 12px rgb(11 31 58 / .07), 0 12px 32px rgb(11 31 58 / .08);
  --shadow-lg: 0 8px 20px rgb(11 31 58 / .08), 0 24px 56px rgb(11 31 58 / .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;

  --header-h: 72px;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scroll-snap-type: y proximity; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Iconos: trazo por defecto; .icon-fill para glifos rellenos */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 1000; background: var(--primary); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-3); }

.container { width: min(100% - 2rem, 1180px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
  cursor: pointer; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: .55rem 1.25rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgb(18 55 107 / .28); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 8px 24px rgb(18 55 107 / .36); }
.btn-whatsapp { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn-whatsapp:hover { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--sky-100); color: var(--primary-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn .icon { transition: transform var(--t-med) var(--ease); }
.btn-primary:hover .icon:not(.icon-fill) { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.brand-text small { font-size: .8125rem; color: var(--text); }
.main-nav { display: flex; align-items: center; gap: var(--s-5); }
.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  font-family: var(--font-head); font-weight: 500; font-size: .9375rem; color: var(--ink); text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--accent-text); background: var(--sky-50); }
.language-switch { display: inline-flex; align-items: center; gap: .2rem; font-family: var(--font-head); font-size: .8125rem; font-weight: 700; color: var(--gray-500); }
.language-btn { min-width: 30px; min-height: 32px; padding: .25rem .35rem; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.language-btn:hover, .language-btn.is-active { color: var(--primary); background: var(--sky-50); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--gray-200); border-radius: var(--r-sm); color: var(--ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Secciones ---------- */
.section {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  padding-block: clamp(3.5rem, 8vw, var(--s-9));
}
.section-soft { background: linear-gradient(180deg, var(--sky-50), #fff 130%); }
.section-head { max-width: 720px; margin: 0 auto var(--s-7); text-align: center; }
.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); margin-bottom: var(--s-4); }
.section-head p { font-size: 1.125rem; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: var(--s-4);
  font-family: var(--font-head); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(28 143 168 / .18); }
.lead { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  scroll-snap-align: start;
  padding-block: clamp(2rem, 5vw, var(--s-8)) clamp(3rem, 6vw, var(--s-9)); background:
  radial-gradient(60rem 36rem at 90% -10%, var(--sky-100), transparent 60%),
  radial-gradient(40rem 30rem at -10% 110%, var(--sky-50), transparent 60%),
  #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, var(--s-8)); }
.hero h1 { font-size: clamp(2.125rem, 4.6vw, 3.625rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: var(--s-5); }
.hero-sub { font-size: 1.125rem; max-width: 34rem; margin-bottom: .35rem; color: var(--text); }
.hero-sub + .hero-sub { margin-top: 0; }
.hero-sub strong { color: var(--ink); }
.trust-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); }
.trust-list li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 500; color: var(--ink); min-width: 0; max-width: 100%; }
.trust-list li > span { min-width: 0; }
.trust-list .icon { color: var(--accent-text); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-visual::before { /* forma orgánica detrás del retrato */
  content: ""; position: absolute; inset: 6% -8% -6% 10%; z-index: 0;
  background: linear-gradient(160deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 46% 54% 42% 58% / 48% 40% 60% 52%; opacity: .16;
}
.hero-photo { position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Etiqueta tipo píldora sobre las fotos (hero y "Sobre mí") */
.pill-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--s-3);
  padding: .75rem 1.25rem .75rem .75rem; background: #fff; border-radius: 999px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
  font-family: var(--font-head); font-weight: 600; font-size: .875rem; line-height: 1.3; color: var(--ink);
}
.pill-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sky-100); color: var(--primary); }
.hero-badge { left: -6%; bottom: 10%; max-width: calc(100% + 1rem); }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, var(--s-9)); align-items: center; }
.about-media { position: relative; width: min(100%, 440px); justify-self: center; }
.about-photo { aspect-ratio: 3 / 4; width: min(100%, 420px); margin-inline: auto; border-radius: 200px 200px var(--r-xl) var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky-100); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 20%; transform: scale(1.02); }
.about-badge { right: -1.25rem; bottom: 2rem; }
.about-badge img { border-radius: 50%; }
#sobre-mi.section { padding-block: var(--s-4) var(--s-5); }
/* Escritorio: Servicios y "Por qué elegirnos" caben completos en una pantalla */
@media (min-width: 901px) {
  #servicios.section, #por-que-elegirnos.section { padding-block: var(--s-4) var(--s-5); }
  #servicios .section-head, #por-que-elegirnos .section-head { margin-bottom: var(--s-5); }
  #servicios .section-head h2, #por-que-elegirnos .section-head h2 { margin-bottom: var(--s-3); }
  .service-card { padding: var(--s-5) var(--s-5) var(--s-4); }
  .service-icon { width: 52px; height: 52px; margin-bottom: var(--s-4); }
  .why-photo { aspect-ratio: 16 / 9; }
  .why-body { padding: var(--s-5) var(--s-5) var(--s-4); }
}
.about-copy h2 { white-space: nowrap; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.08; margin-bottom: var(--s-4); }
.about-copy > p:not(.eyebrow) { max-width: 42rem; font-size: 1.0625rem; line-height: 1.7; text-align: justify; }
.focus-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.focus-list li { position: relative; padding-left: var(--s-6); }
.focus-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--sky-100); }
.focus-list strong { color: var(--ink); font-family: var(--font-head); }
.cred-title { font-size: 1.125rem; margin: var(--s-4) 0 var(--s-3); }
.cred-list { display: grid; gap: var(--s-2); }
.cred-list li {
  display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-3) var(--s-4);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.cred-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cred-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.0625rem; line-height: 1.3; margin-bottom: 2px; }
.cred-list li > span:last-child { font-size: .9375rem; line-height: 1.5; }
.cred-icon, .info-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sky-100); color: var(--primary); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: var(--s-6) var(--s-5) var(--s-5);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.service-card::after { /* barra de acento */
  content: ""; position: absolute; left: var(--s-5); right: var(--s-5); top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after, .service-card:focus-within::after { transform: scaleX(1); }
.service-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: var(--s-5); border-radius: 18px; background: var(--sky-100); color: var(--primary); transition: background-color var(--t-med), color var(--t-med); }
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon, .service-card:focus-within .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.service-card p { font-size: 1rem; line-height: 1.65; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: var(--s-2);
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--accent-text);
}
.card-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-med) var(--ease); }
.card-link:hover { color: var(--primary); }
.card-link:hover .icon { transform: translateX(4px); }

/* ---------- Opiniones ---------- */
.reviews-section { background: var(--sky-50); }
.reviews-carousel { max-width: 720px; margin: 0 auto; }
.reviews-grid { display: grid; }
.review-card { display: none; flex-direction: column; min-height: 250px; padding: var(--s-6); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.review-card.is-active { display: flex; animation: review-in 400ms var(--ease); }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.review-rating { color: #d28a19; font-size: 1rem; letter-spacing: .08em; }
.review-verified { padding: .25rem .6rem; border-radius: 999px; background: var(--sky-100); color: var(--primary); font-family: var(--font-head); font-size: .75rem; font-weight: 700; }
.review-card blockquote { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
.review-card footer { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-5); color: var(--text); font-size: .875rem; }
.review-card footer span { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.reviews-source { margin: var(--s-5) 0 0; text-align: center; }
.reviews-source a { font-family: var(--font-head); font-weight: 600; }
.review-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.review-control { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gray-300); border-radius: 50%; background: #fff; color: var(--primary); font-size: 1.25rem; }
.review-control:hover { background: var(--sky-100); border-color: var(--accent); }
.review-counter { min-width: 3.5rem; color: var(--text); font-family: var(--font-head); font-size: .875rem; text-align: center; }
@keyframes review-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Por qué elegirnos ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.why-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-100); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.why-card:nth-child(1) .why-photo img { object-position: 60% 30%; }
.why-card:nth-child(2) .why-photo img { object-position: 50% 30%; }
.why-card:nth-child(3) .why-photo img { object-position: 50% 22%; }
.why-card:hover .why-photo img { transform: scale(1.04); }
.why-body { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); }
.why-num { position: absolute; top: -22px; left: var(--s-5); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; box-shadow: 0 4px 12px rgb(18 55 107 / .35); border: 3px solid #fff; }
.why-body h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.why-body p { margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-deep), var(--primary) 70%, #1a5a8f); color: #fff; padding-block: clamp(2.5rem, 6vw, var(--s-8)); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgb(95 208 230 / .12); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.625rem, 3vw, 2.375rem); max-width: 30ch; margin-bottom: var(--s-2); }
.cta-band p { margin: 0; color: var(--gray-300); font-size: 1.125rem; }

/* ---------- Ubicación + formulario ---------- */
.loc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); align-items: start; }
.sedes-title { font-size: 1.125rem; margin-bottom: var(--s-3); }
.sedes { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.sede { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background-color var(--t-med) var(--ease); }
.sede:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.sede.is-active { border-color: var(--accent); background: var(--sky-50); box-shadow: 0 0 0 2px var(--accent); }
.sede-btn { display: flex; gap: var(--s-4); align-items: flex-start; width: 100%; padding: var(--s-4) var(--s-4) var(--s-2); text-align: left; font: inherit; color: var(--text); line-height: 1.5; font-size: .9375rem; background: none; border: 0; border-radius: var(--r-md); cursor: pointer; }
.sede-text strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
.sede.is-active .info-icon { background: var(--accent); color: #fff; }
.sede-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: calc(var(--s-4) + 44px + var(--s-4)); padding-right: var(--s-4); font-weight: 600; font-size: .9375rem; }
.sede-link .icon { width: 16px; height: 16px; }
.map-wrap { margin-bottom: var(--s-6); }
.info-list { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.info-list li { display: flex; gap: var(--s-4); align-items: flex-start; line-height: 1.55; }
.info-list strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
.info-list a { display: inline-block; padding-block: 2px; font-weight: 500; }
.map-wrap { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); background: var(--sky-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.form-card { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(1.5rem, 3vw, var(--s-6)); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); }
.form-card h3 { font-size: 1.625rem; margin-bottom: var(--s-2); }
.form-lead { margin-bottom: var(--s-5); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; margin-bottom: var(--s-2); font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--ink); }
.req { color: var(--error); }
.field input:not([type="checkbox"]), .field select {
  width: 100%; min-height: 52px; padding: .7rem 1rem; background: var(--gray-50); border: 1.5px solid var(--gray-300); border-radius: var(--r-sm); color: var(--ink); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2312376b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.field input:hover, .field select:hover { border-color: var(--accent); }
.field input:focus, .field select:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(28 143 168 / .25); }
.field-help { margin: var(--s-2) 0 0; font-size: .8125rem; color: var(--text); }
.field-error { display: none; margin: var(--s-2) 0 0; font-size: .875rem; font-weight: 500; color: var(--error); }
.field.has-error .field-error { display: block; }
.field.has-error input:not([type="checkbox"]), .field.has-error select { border-color: var(--error); background: #fff8f7; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 0 var(--s-3); align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--primary); cursor: pointer; }
.field-check label { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: .875rem; line-height: 1.55; color: var(--text); }
.field-check .field-error { grid-column: 2; }
.form-note { margin: var(--s-4) 0 0; font-size: .8125rem; line-height: 1.55; color: var(--text); }
.form-note:empty { display: none; }
.form-note.is-success { color: var(--wa); font-weight: 600; font-size: .9375rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-deep); color: var(--gray-300); padding-top: var(--s-8); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-brand p { margin-top: var(--s-4); max-width: 32ch; }
.brand-light, .brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--gray-300); }
.footer-title { font-family: var(--font-head); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: var(--s-4); }
.site-footer a { color: var(--gray-300); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer nav li a { display: inline-block; padding: 6px 0; }
.cert-list { display: grid; gap: var(--s-3); }
.cert-list li { display: flex; gap: var(--s-3); align-items: flex-start; min-width: 0; }
.cert-list li > span { min-width: 0; }
.cert-list .icon { color: var(--accent-light); margin-top: 3px; }
.cert-list .cedulas { color: #fff; font-weight: 500; padding-left: calc(1.25em + var(--s-3)); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid rgb(255 255 255 / .14); }
.footer-bottom p { margin: 0; }
.footer-bottom a { padding: 10px 0; display: inline-block; }
.footer-legal { max-width: 820px; margin: 0 auto; padding-bottom: 6rem; font-size: .8125rem; line-height: 1.6; color: #a9b8cc; text-align: center; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem; height: 60px; min-width: 60px; padding: 0 1.25rem 0 1rem; justify-content: center;
  background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600;
  box-shadow: 0 8px 24px rgb(14 122 90 / .45), 0 2px 6px rgb(0 0 0 / .15);
  transition: background-color var(--t-fast), transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; transform: translateY(-3px); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:focus-visible { outline-color: var(--primary); }

/* ---------- Diálogo de privacidad ---------- */
.privacy { width: min(92vw, 560px); max-height: 86vh; padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: var(--text); }
.privacy::backdrop { background: rgb(11 31 58 / .6); }
.privacy-inner { padding: var(--s-6); overflow-y: auto; max-height: 86vh; }
.privacy h2 { font-size: 1.5rem; margin-bottom: var(--s-4); }
.privacy p { font-size: .9375rem; }
.privacy strong { color: var(--ink); }
.privacy-note { font-size: .8125rem !important; color: var(--text); }

/* ---------- Animación de entrada (solo con JS y sin reduced-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* La transición de hover de las tarjetas debe ser inmediata tras la entrada */
.js .service-card.reveal.is-visible, .js .why-card.reveal.is-visible, .js .cred-list li.reveal.is-visible { transition: opacity 600ms var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); transition-delay: 0ms; }

@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: float-a 6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { left: -2%; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: var(--s-3);
    padding: var(--s-4) 1rem var(--s-5); background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  .language-switch { align-self: flex-start; margin-top: var(--s-2); }
  .nav-cta { width: 100%; }

  .hero-grid, .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 380px); margin-top: var(--s-4); }
  .about-media { width: min(100%, 380px); }
  .about-copy h2 { white-space: normal; }
  .about-badge { right: .5rem; }
  .why-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .form-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .cta-row .btn { width: 100%; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .pill-badge { font-size: .8125rem; }
  .hero-badge { left: -.5rem; bottom: 6%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .wa-float { height: 56px; min-width: 56px; padding: 0; width: 56px; }
  .wa-float-label { display: none; }
  .footer-bottom { flex-direction: column; }
}
