/* =========================================================================
   ODONTO DE LA TORRE — HOJA DE ESTILOS
   -------------------------------------------------------------------------
   Cómo está organizado este archivo (para que sea fácil de mantener):
   1. Tokens (variables) ......... colores, tipografías, espaciados
   2. Reset básico
   3. Utilidades genéricas ....... contenedor, botones, chips, etiquetas
   4. Header / navegación
   5. Hero
   6. Barra de confianza
   6.5. Especialidades
   7. Servicios
   8. Nosotros
   9. Galería
   10. Ubicación / Contacto
   11. Footer
   12. Botón flotante de WhatsApp
   13. Responsive (mobile)

   Para cambiar un color, tipografía o espaciado de TODO el sitio, alcanza
   con editar la sección de tokens (punto 1). No hace falta tocar el resto.
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Paleta: azul profundo -> celeste (identidad de Odonto de la Torre) */
  --navy: #063a63;          /* azul marino, fondos oscuros / footer */
  --blue-dark: #0a5b9c;     /* azul principal de marca */
  --blue: #1478c8;          /* azul interactivo (botones, links) */
  --blue-light: #3fa1e0;    /* azul medio, degradés */
  --sky: #5fd1ef;           /* celeste, acento principal */
  --sky-soft: #d9f4fc;      /* celeste muy claro, fondos de sección */
  --sky-pale: #f2fbfd;      /* casi blanco con tinte celeste */
  --white: #ffffff;

  --ink: #0f2439;           /* texto principal */
  --ink-soft: #4d6072;      /* texto secundario */
  --mist: #7c93a3;          /* texto terciario / placeholders */
  --line: #dbe9f1;          /* bordes suaves */

  --ok: #2fbf8f;            /* acento de confirmación (whatsapp/turno) */

  /* Tipografía */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Espaciado y forma */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(6, 58, 99, 0.08);
  --shadow-md: 0 14px 34px rgba(6, 58, 99, 0.14);
  --shadow-lg: 0 24px 60px rgba(6, 58, 99, 0.20);
  --container: 1180px;

  --header-h: 84px;
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Íconos SVG embebidos (ver sprite al inicio del <body>) */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

/* ---------- 3. UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tint { background: var(--sky-pale); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--sky-soft);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--ghost {
  background: var(--white);
  color: var(--blue-dark);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--blue-light); }

.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.16); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- 4. HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(6, 58, 99, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 16.5px; color: var(--navy); }
.brand-text span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--blue); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.tel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--navy);
}
.tel-chip svg { width: 17px; height: 17px; color: var(--blue); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy); }

/* ---------- 4.5. SUBMENÚ "ESPECIALIDADES" ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after { width: 100%; }
.icon--chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown.is-open .icon--chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 380px;
  padding-top: 16px; /* puente invisible: mantiene el :hover activo al bajar desde el botón, sin dejar un hueco muerto */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}
.nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-panel-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown-panel a::after { display: none; }
.nav-dropdown-panel a:hover { background: var(--sky-pale); color: var(--blue-dark); }
.nav-dropdown-panel a svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.nav-dropdown-all {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px !important;
  color: var(--blue-dark) !important;
}

@media (min-width: 721px) {
  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown:hover .icon--chevron,
  .nav-dropdown:focus-within .icon--chevron { transform: rotate(180deg); }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 90px;
  background: radial-gradient(1100px 620px at 78% -10%, rgba(95, 209, 239, 0.35), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--blue-dark) 62%, var(--blue) 100%);
  overflow: hidden;
  color: var(--white);
}

.hero-tooth {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  max-width: 60vw;
  opacity: 0.16;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--sky), #bdf0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  margin-top: 20px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-chips {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  transition: background 0.18s ease, transform 0.18s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 58, 99, 0.35), transparent 45%);
}
.hero-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge svg { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 14px; font-family: var(--font-display); }
.hero-badge span { font-size: 12px; color: var(--ink-soft); }

/* Divisor curvo tipo "sonrisa" entre secciones */
.smile-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: -1px;
}

/* ---------- 6. BARRA DE CONFIANZA ---------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 40px 24px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14.5px; color: var(--navy); font-family: var(--font-display); }
.trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 6.5. ESPECIALIDADES ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.specialty-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}
.specialty-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  color: var(--blue-dark);
}
.specialty-icon svg { width: 21px; height: 21px; }
.specialty-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.specialty-copy strong { font-family: var(--font-display); font-size: 15.5px; color: var(--navy); }
.specialty-copy span { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }

/* ---------- 7. SERVICIOS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  color: var(--blue-dark);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.service-card .btn { color: var(--blue-dark); font-size: 13.5px; padding: 0; background: none; }
.service-card .btn svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.service-card .btn:hover svg { transform: translateX(3px); }
.service-card .btn:hover { transform: none; }

.service-card--highlight {
  background: linear-gradient(150deg, var(--blue-dark), var(--blue));
  border: none;
}
.service-card--highlight .service-icon { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.service-card--highlight h3, .service-card--highlight p { color: var(--white); }
.service-card--highlight p { color: rgba(255, 255, 255, 0.82); }
.service-card--highlight .btn { color: var(--white); }

/* ---------- 8. NOSOTROS ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--sky);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-list { display: grid; gap: 18px; margin-top: 28px; }
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
}
.about-list svg { width: 22px; height: 22px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.about-list strong { color: var(--ink); }

.about-note {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--sky-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.about-note svg { width: 34px; height: 34px; color: var(--blue-dark); flex-shrink: 0; }
.about-note strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--navy); }
.about-note span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 9. GALERÍA ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.gallery-grid a {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(4) { grid-row: span 2; }
.gallery-grid a:nth-child(6) { grid-column: span 2; }

.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 58, 99, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid a svg {
  position: absolute; right: 14px; bottom: 14px;
  width: 30px; height: 30px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid a:hover svg { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 20, 33, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(900px, 100%);
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 26px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- 10. UBICACIÓN / CONTACTO ---------- */
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-item:last-of-type { border-bottom: none; }
.contact-item svg { width: 22px; height: 22px; color: var(--sky); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-family: var(--font-display); font-size: 14.5px; margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.contact-item a:hover { color: var(--white); }

.contact-socials { display: flex; gap: 12px; margin-top: 28px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-btn svg { width: 19px; height: 19px; color: var(--white); }
.social-btn:hover { background: var(--sky); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- 11. FOOTER ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 38px; filter: brightness(0) invert(1); }
.footer-brand strong { font-family: var(--font-display); color: var(--white); font-size: 16px; }
.footer p.desc { font-size: 14px; max-width: 300px; }
.footer h4 { color: var(--white); font-family: var(--font-display); font-size: 14.5px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { font-size: 14px; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 12. WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(47, 191, 143, 0.45);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; color: var(--white); }
@keyframes float-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about .container { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-links, .tel-chip { display: none; }
  .nav-toggle { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 6px 0; }
  .nav-dropdown-panel {
    position: static;
    transform: none;
    width: auto;
    padding-top: 0;
    max-height: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
  }
  .nav-dropdown-panel-inner {
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    padding: 0 0 0 6px;
  }
  .nav-dropdown.is-open .nav-dropdown-panel { max-height: 600px; margin-top: 10px; }
  .specialties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid a:nth-child(6) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* Pantallas muy chicas: evitar que el header se apriete entre logo, botón y hamburguesa */
@media (max-width: 480px) {
  .brand-text { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn--sm { padding: 9px 14px; font-size: 12.5px; gap: 6px; }
  .header-actions .btn--sm svg { width: 15px; height: 15px; }

  .faq-item { padding: 4px 16px; }
  .faq-item summary { font-size: 14.5px; }
  .values-grid { grid-template-columns: 1fr; }
  .price-card { padding: 28px 20px; }
  .process-step { padding: 24px 20px; }
  .gallery-grid { grid-auto-rows: 120px; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
}

/* Menú móvil */
.nav-links.is-open {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 22px 24px 30px;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

/* ---------- 14. PÁGINAS DE ESPECIALIDAD (breadcrumb + hero de detalle) ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }

.specialty-hero { padding-top: 44px; }
.specialty-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.specialty-hero-copy .about-list { margin: 22px 0 28px; }
.specialty-hero-icon {
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  margin-left: auto;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  display: flex;
  align-items: center;
  justify-content: center;
}
.specialty-hero-icon svg { width: 38%; height: 38%; color: var(--blue-dark); }

@media (max-width: 860px) {
  .specialty-hero-grid { grid-template-columns: 1fr; }
  .specialty-hero-icon { max-width: 160px; margin: 0 auto; order: -1; }
}

/* ---------- 15. PÁGINA "CONÓCENOS" (valores + equipo) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  position: relative;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 22px 24px;
  text-align: center;
}
.placeholder-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--sky-soft);
  padding: 4px 9px;
  border-radius: 999px;
}
.team-avatar {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  color: var(--blue-dark);
}
.team-avatar svg { width: 28px; height: 28px; }
.team-card h3 { font-size: 16.5px; margin-bottom: 4px; color: var(--ink-soft); font-style: italic; }
.team-role { display: block; font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-bottom: 10px; }
.team-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; font-style: italic; }

@media (max-width: 860px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- 16. FAQ (páginas de especialidad) ---------- */
.container--narrow { max-width: 760px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--blue-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; margin: -6px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 17. PROCESO Y PRECIO (páginas de especialidad) ---------- */

/* Proceso: tarjetas con ícono + número, conectadas por una línea en desktop */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Línea conectora entre tarjetas (solo desktop, 3 columnas) */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 100%;
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 11px);
}

.process-icon-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.process-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-pale));
  color: var(--blue-dark);
}
.process-icon svg { width: 24px; height: 24px; }
.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Precio: dos columnas — texto + tarjeta destacada */
.price-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.price-info p { margin: 14px 0 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.price-includes { display: flex; flex-direction: column; gap: 14px; }
.price-includes li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink); }
.price-includes svg { width: 20px; height: 20px; color: var(--blue-dark); flex-shrink: 0; margin-top: 1px; }

.price-card {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card .placeholder-badge {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.price-card-label {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
}
.price-note { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.55; margin-bottom: 10px; }
.price-card .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.price-card .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; gap: 20px; }
  .process-step::after { display: none; }
  .price-grid { grid-template-columns: 1fr; gap: 36px; }
  .price-card { padding: 34px 26px; }
  .price-amount { font-size: 34px; }
}


/* ---------- 18. CARRUSEL DE FOTOS (home) ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 7;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-arrow svg { width: 20px; height: 20px; color: var(--navy); }
.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}
.carousel-dot.is-active { width: 22px; border-radius: 4px; background: var(--white); }

@media (max-width: 720px) {
  .carousel-slide { aspect-ratio: 4 / 3; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow svg { width: 17px; height: 17px; }
}
