/* ─── Sonrisa Premium · EMBER · Shared CSS ─────────────────
   Paleta cálida saturada inspirada en Denta (naranja + negro)
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Naranja Ember */
  --ember-deep:    #3D1308;  /* casi negro cálido (vignette) */
  --ember-dark:    #6B1F0E;  /* naranja muy oscuro */
  --ember-base:    #C9421B;  /* naranja saturado principal */
  --ember-glow:    #E85420;  /* naranja brillante hot */
  --ember-pale:    #F5B895;  /* naranja pálido (palabras destacadas) */
  --ember-cream:   #FFE4D1;  /* crema sutil */

  /* Neutrales */
  --black:    #0D0D0D;
  --black-2:  #1A1410;
  --white:    #FFFFFF;
  --gray:     #9A8B82;
  --gray-light: #BFB2A8;
  --border:   rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.20);

  /* Acento */
  --green:    #3D8A52;
  --green-bright: #4FAD68;

  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--white);
  background: var(--ember-base);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--ember-deep);
  padding: 10px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { padding: 8px 5%; border-bottom-color: var(--border); }
.nav-cta { padding: 8px 18px; font-size: 12.5px; }

.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--ember-glow) 0%, var(--ember-base) 100%);
  color: var(--white);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(232,84,32,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
.nav-logo-icon svg { width: 22px; height: 22px; }
.nav-logo:hover .nav-logo-icon {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(232,84,32,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav-logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-links li { position: relative; }
.nav-links li::before {
  content: '•'; position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
  color: var(--ember-pale); font-size: 14px;
}
.nav-links li:first-child::before { display: none; }
.nav-links a {
  color: var(--white); font-size: 14px; font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--transition);
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--ember-pale);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.35s var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left center;
}
.nav-links a:hover, .nav-links a.active { color: var(--ember-pale); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 12px 26px; border-radius: 50px;
  font-size: 13.5px; font-weight: 500;
  transition: all 0.3s var(--transition);
}
.nav-cta {
  position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s var(--transition);
}
.nav-cta:hover::before { left: 100%; }
.nav-cta:hover {
  background: var(--white); color: var(--ember-base);
  transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232,84,32,0.35);
}

/* ─── HERO base (todas las páginas) ─────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 5% 40px;
  display: flex; flex-direction: column;
  background: var(--ember-deep);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hero del home: imagen completa con diente integrado */
.hero-home {
  min-height: 100vh; height: 100vh;
  background: #110001;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Hero compact (nosotros, contacto): fondo simple en ember-deep */
.hero-compact {
  min-height: auto;
  padding: 130px 5% 80px;
  background:
    radial-gradient(ellipse 1600px 1100px at 50% 50%, var(--ember-dark) 0%, var(--ember-deep) 90%, var(--black) 100%);
}
/* Overlay sutil solo en home (imagen de fondo) */
.hero-home::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.35) 100%);
  pointer-events: none; z-index: 1;
}
/* Fade out a negro al final del hero (transición a sección dark) */
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none; z-index: 2;
}
/* Espacio para el diente (que está en la imagen de fondo, no como elemento) */
.hero-tooth-space { /* placeholder columna grid */ }

.hero-grid {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.4fr 0.8fr 340px; gap: 32px;
  align-items: center; flex: 1;
}

.hero-text { position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ember-cream); margin-bottom: 24px;
  opacity: 0.9;
}
.hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--ember-cream); }

.hero-lead {
  font-size: 14px; color: var(--ember-cream);
  line-height: 1.55; max-width: 380px; margin-bottom: 48px;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--white);
  margin: 0;
}
.hero-text h1 .pale,
.hero h1 .pale { font-weight: 300; color: var(--ember-pale); }

/* Diente 3D centrado */
.hero-tooth {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-tooth-img {
  width: 360px; max-width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(232,84,32,0.4));
  /* Mask radial para fundir los bordes con el fondo */
  -webkit-mask-image: radial-gradient(ellipse 65% 92% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 92% at 50% 50%, #000 55%, transparent 100%);
}

/* Carrusel de doctores */
.hero-doctors {
  position: relative;
  align-self: end;
  padding-bottom: 32px;
}
.hero-doctors-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: var(--white);
  padding: 8px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 500; margin-bottom: 16px;
  cursor: pointer; transition: all 0.3s var(--transition);
  border: none;
}
.hero-doctors-nav {
  position: relative; overflow: hidden;
}
.hero-doctors-nav::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s var(--transition);
}
.hero-doctors-nav:hover::before { left: 100%; }
.hero-doctors-nav:hover {
  background: var(--ember-glow);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,84,32,0.45);
}
.hero-doctors-nav:active { transform: translateY(0); }

.hero-doctors-track {
  display: flex; gap: 16px;
  overflow: hidden;
}
.doctor-card {
  flex: 0 0 calc(50% - 8px);
  background: var(--black);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}
.doctor-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.doctor-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--white); font-size: 14px; font-weight: 600;
}

/* Bottom strip del hero */
.hero-strip {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 24px auto 0; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 20px;
  flex-shrink: 0;
}
.hero-strip-block { font-size: 12px; color: var(--ember-cream); line-height: 1.6; }
.hero-strip-block strong {
  display: block; color: var(--white); font-weight: 500;
  font-size: 13px; margin-bottom: 4px;
}
.hero-strip-clock {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
}

/* ─── SECCIONES GENÉRICAS ─────────────────────────────────── */
.section {
  padding: 120px 5%; position: relative;
  overflow: hidden;
}
.section .section-inner { position: relative; z-index: 2; }

/* Section dark (negro): fade entry desde negro (matchea fin del hero) +
   fade exit hacia ember-dark para transición a section-warm */
/* SECCIÓN DARK (negro) ─────────────────────────────────────
   Color de fondo: var(--black)
   ::after fade DOWN matchea con la sección siguiente. */
.section-dark { background: var(--black); color: var(--white); padding-top: 200px; padding-bottom: 240px; }
.section-dark::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 320px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--ember-deep)); /* default → footer */
}
.section-dark:has(+ .section-warm)::after { background: linear-gradient(to bottom, transparent, var(--ember-dark)); }
.section-dark:has(+ .section-dark)::after { background: linear-gradient(to bottom, transparent, var(--black)); }
.section-dark:has(+ .section-cream)::after { background: linear-gradient(to bottom, transparent, var(--ember-cream)); }

/* SECCIÓN WARM (naranja oscuro) ─────────────────────────────
   ::after fade DOWN matchea con la siguiente.
   No usa ::before — la transición ENTRA viene del ::after de la anterior. */
.section-warm { background: var(--ember-dark); padding-top: 200px; padding-bottom: 240px; }
.section-warm::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 320px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--ember-cream)); /* default → cream */
}
.section-warm:has(+ .section-dark)::after { background: linear-gradient(to bottom, transparent, var(--black)); }
.section-warm:has(+ .section-warm)::after { background: linear-gradient(to bottom, transparent, var(--ember-dark)); }
.section-warm:has(+ footer)::after { background: linear-gradient(to bottom, transparent, var(--ember-deep)); }

/* Section cream (claro): el fade DESDE warm lo hace warm::after.
   El cream NO necesita ::before (causaba banda marrón dentro del cream).
   Solo ::after para fade al footer ember-deep. */
.section-cream {
  background: var(--ember-cream); color: var(--black);
  padding-top: 120px; padding-bottom: 240px;
}
.section-cream::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 280px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--ember-deep));
}
.section-cream .section-tag, .section-cream p { color: var(--ember-dark); }

.section-inner { max-width: 1300px; margin: 0 auto; }
.section-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ember-pale);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--ember-pale); }

.section-headline {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--white);
  margin-bottom: 24px; max-width: 800px;
}
.section-headline .pale { font-weight: 300; color: var(--ember-pale); }
.section-cream .section-headline { color: var(--black); }
.section-cream .section-headline .pale { color: var(--ember-base); }

.section-subtitle {
  font-size: 16px; color: var(--white); max-width: 600px;
  line-height: 1.7; margin-bottom: 64px;
}
.section-cream .section-subtitle { color: var(--ember-dark); }

/* Cards y CTAs */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--black);
  padding: 16px 32px; border-radius: 50px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: all 0.3s var(--transition);
  border: none; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.btn-pill.outline {
  background: transparent; color: var(--white); border: 1px solid var(--white);
}
.btn-pill.outline:hover { background: var(--white); color: var(--black); }

/* Cards servicios */
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.servicio-card {
  background: var(--black);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--white);
}
.servicio-card:hover {
  transform: translateY(-4px);
  border-color: var(--ember-glow);
  box-shadow: 0 16px 48px rgba(232,84,32,0.2);
}
.servicio-card .num {
  font-size: 12px; color: var(--ember-pale);
  letter-spacing: 0.2em; margin-bottom: 32px;
  font-variant-numeric: tabular-nums;
}
.servicio-card h3 {
  font-size: 22px; font-weight: 600; line-height: 1.25;
  margin-bottom: 12px; letter-spacing: -0.015em;
}
.servicio-card p {
  font-size: 14px; color: var(--gray-light); line-height: 1.6;
  flex: 1; margin-bottom: 28px;
}
.servicio-card .precio {
  font-size: 13px; color: var(--ember-pale);
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.servicio-card .precio strong { color: var(--white); font-size: 16px; }
.servicio-card .arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--transition);
}
.servicio-card:hover .arrow { background: var(--ember-glow); border-color: var(--ember-glow); }
.servicio-card .arrow svg { width: 14px; height: 14px; }

/* Equipo cards (nosotros) */
.equipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.equipo-card {
  background: var(--black); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--transition);
}
.equipo-card:hover { transform: translateY(-4px); border-color: var(--ember-glow); }
.equipo-card-photo {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
}
.equipo-card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.6s var(--transition);
}
.equipo-card:hover .equipo-card-photo img { transform: scale(1.04); }
.equipo-card-body { padding: 24px 28px 28px; }
.equipo-card .badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(61,138,82,0.15); color: var(--green-bright);
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.equipo-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.equipo-card .role {
  font-size: 13px; color: var(--ember-pale);
  margin-bottom: 16px;
}
.equipo-card p {
  font-size: 13px; color: var(--gray-light); line-height: 1.6;
}

/* Contacto */
.contacto-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contacto-info-list { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.contacto-info-block strong {
  display: block; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ember-pale); margin-bottom: 8px;
}
.contacto-info-block p, .contacto-info-block a { font-size: 16px; color: var(--white); }
.contacto-info-block a:hover { color: var(--ember-pale); }

.contacto-form {
  background: var(--black); border-radius: 24px; padding: 40px;
  border: 1px solid var(--border);
}
.contacto-form-header {
  margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.contacto-form-header strong {
  display: block; font-size: 22px; font-weight: 600; margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.contacto-form-header span {
  font-size: 13px; color: var(--ember-pale);
  display: inline-flex; align-items: center; gap: 8px;
}
.contacto-form input, .contacto-form select, .contacto-form textarea {
  width: 100%; background: transparent; border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 12px; color: var(--white);
  font-size: 14px; font-family: inherit; margin-bottom: 14px;
  transition: border-color 0.2s var(--transition);
}
.contacto-form input:focus, .contacto-form select:focus, .contacto-form textarea:focus {
  outline: none; border-color: var(--ember-pale);
}
.contacto-form input::placeholder, .contacto-form textarea::placeholder { color: var(--gray); }
.contacto-form textarea { min-height: 100px; resize: vertical; }
.contacto-form button {
  width: 100%; background: var(--ember-glow); color: var(--white); border: none;
  padding: 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s var(--transition); font-family: inherit;
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(232,84,32,0.25);
}
.contacto-form button::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s var(--transition);
}
.contacto-form button:hover::before { left: 100%; }
.contacto-form button:hover {
  background: var(--white); color: var(--ember-base);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232,84,32,0.5);
}
.contacto-form button svg { transition: transform 0.3s var(--transition); }
.contacto-form button:hover svg { transform: translateX(4px); }

.status-dot {
  position: relative; display: inline-block;
  width: 8px; height: 8px; background: var(--green-bright); border-radius: 50%;
  flex-shrink: 0;
}
.status-dot::before {
  content: ''; position: absolute; inset: -2px;
  background: var(--green-bright); border-radius: 50%; opacity: 0.5;
  animation: ember-pulse 2.2s ease-out infinite;
}
@keyframes ember-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Footer */
footer {
  padding: 64px 5% 32px;
  background: var(--ember-deep); color: var(--ember-cream);
}
.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand strong { display: block; font-size: 18px; color: var(--white); margin-bottom: 6px; }
.footer-brand span { font-size: 11px; color: var(--ember-pale); letter-spacing: 0.2em; text-transform: uppercase; }
.footer-brand p { font-size: 13px; color: var(--ember-cream); line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--white); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ember-cream); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1300px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ember-pale);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
.no-js .reveal { opacity: 1; transform: none; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--transition);
  text-decoration: none;
}
.wa-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: #25D366; opacity: 0.35; z-index: -1;
  animation: waPulse 2.4s var(--transition) infinite;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 30px; height: 30px; transition: transform 0.3s var(--transition); }
.wa-float:hover svg { transform: rotate(-8deg); }
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll progress bar — línea fina arriba del banner */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 1100;
  background: linear-gradient(90deg, var(--ember-glow), var(--ember-pale));
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* Pronto banner superior — fixed junto al navbar para que no haya gap */
.pronto-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: var(--black); color: var(--ember-cream);
  font-size: 12px; padding: 8px 5%; text-align: center;
  border-bottom: 1px solid var(--border);
}
.pronto-banner strong { color: var(--ember-pale); }
.has-banner .navbar { top: 33px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tooth { order: -1; }
  .hero-tooth-img { width: 260px; }
  .hero-doctors { display: none; }
  .hero-strip { grid-template-columns: 1fr; gap: 20px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .contacto-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  /* Banner Pronto compacto */
  .pronto-banner { font-size: 10.5px; padding: 6px 12px; line-height: 1.35; }

  /* Navbar: logo y CTA no rompen línea */
  .navbar { padding: 8px 16px; gap: 8px; }
  .nav-logo-text { white-space: nowrap; font-size: 14px; }
  .nav-logo-icon { width: 32px; height: 32px; border-radius: 8px; }
  .nav-logo-icon svg { width: 20px; height: 20px; }
  .nav-cta { white-space: nowrap; padding: 7px 14px; font-size: 11.5px; }

  /* Hero index mobile: SIN imagen del diente, MISMO color que .section-warm
     (ember-dark #6B1F0E — clínica "Un espacio diseñado" + "Nuestro enfoque") */
  .hero-home {
    min-height: auto !important;
    height: auto !important;
    background: var(--ember-dark) !important;
    padding: 96px 5% 32px;
  }
  /* En mobile el grid del hero se apila: texto → doctores → strip */
  .hero-home .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .hero-home .hero-tooth-space { display: none !important; }
  .hero-home .hero-doctors { display: block !important; }
  .hero-home .hero-doctors-track { gap: 12px; }
  .hero-home .doctor-card { flex: 0 0 calc(50% - 6px); border-radius: 14px; }
  .hero-home .hero-doctors-nav {
    padding: 10px 18px; font-size: 13px;
    margin-bottom: 14px;
  }
  .hero-home::before { display: none; }
  .hero-text { padding-bottom: 0; }
  .hero-text h1 { font-size: clamp(2.6rem, 10.5vw, 3.2rem) !important; line-height: 1.02; }
  .hero-lead { font-size: 14.5px; margin-bottom: 32px; }
  /* Strip mobile: SIN cuadro, texto se funde con el fondo */
  .hero-strip {
    margin-top: 40px; padding: 24px 0 0;
    background: none; border: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(245,184,149,0.18);
  }
  .hero-strip-block { padding: 4px 0; }

  /* Hero compact (nosotros/contacto): padding y radial más sutil */
  .hero-compact { padding: 110px 5% 60px; }
  .hero-compact h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .hero-compact p { font-size: 16px !important; max-width: 100% !important; }

  /* Grids inline mobile-safe (forzar 1col donde el inline impone más) */
  .section [style*="grid-template-columns:repeat(3,1fr)"],
  .section [style*="grid-template-columns:repeat(2,1fr)"],
  .section [style*="grid-template-columns:1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Hero strip: stack vertical compacto */
  .hero-strip { gap: 14px; margin-top: 12px; padding-top: 18px; }
  .hero-strip-block { padding: 6px 0; }

  /* Tour clínica: cards full width, aspect-ratio se mantiene 3:2 */
  .clinica-grid { gap: 18px; }

  /* Section padding mobile */
  .section { padding: 64px 5%; }
  .section-headline { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }

  /* Contacto form mobile */
  .contacto-form { padding: 24px; }

  /* Stats en index "Nuestro enfoque" mobile */
  .stat-card { padding: 24px !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ─── CLÍNICA TOUR (galería del consultorio) ─────────────── */
.clinica-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.clinica-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--black);
  transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
  border: 1px solid var(--black);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  aspect-ratio: 3 / 2;
}
.clinica-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.clinica-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.8s var(--transition);
}
.clinica-card:hover img { transform: scale(1.06); }
.clinica-card-label {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border);
}

/* ─── TECNOLOGÍA (cards horizontales) ─────────────────────── */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 24px;
}
.tech-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  transition: all 0.3s var(--transition);
}
.tech-card:hover { transform: translateY(-4px); border-color: var(--ember-glow); }
.tech-card img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  display: block; transition: transform 0.8s var(--transition);
}
.tech-card:hover img { transform: scale(1.04); }
.tech-card-body { padding: 24px 28px 28px; }
.tech-card-tag {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(232,84,32,0.15); color: var(--ember-pale);
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 14px;
}
.tech-card h3 {
  font-size: 18px; font-weight: 600; color: var(--white);
  margin-bottom: 10px; letter-spacing: -0.015em; line-height: 1.3;
}
.tech-card p { font-size: 13.5px; color: var(--gray-light); line-height: 1.6; }

/* ─── TESTIMONIOS (cards con foto paciente) ──────────────── */
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 24px;
}
.testimonio-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column;
  transition: all 0.3s var(--transition);
}
.testimonio-card:hover { transform: translateY(-4px); border-color: var(--ember-glow); }
.testimonio-stars {
  color: var(--ember-glow); font-size: 16px;
  letter-spacing: 2px; margin-bottom: 16px;
}
.testimonio-quote {
  font-size: 14.5px; color: var(--gray-light); line-height: 1.65;
  flex: 1; margin-bottom: 24px;
  font-style: italic;
}
.testimonio-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.testimonio-author img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--ember-glow);
}
.testimonio-author strong {
  display: block; color: var(--white); font-size: 14px;
  font-weight: 600; margin-bottom: 2px;
}
.testimonio-author span {
  font-size: 12px; color: var(--ember-pale); letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
  .clinica-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
