/* ==========================================================================
   RIE ODONTOLOGÍA — hoja de estilos única
   Organización: tokens -> base -> util -> layout -> componentes -> secciones
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #152B4E;
  --blue: #3BA3DC;
  --teal: #4EC5BE;
  --bone: #F2F0EE;
  --white: #FFFFFF;
  --gold: #C08A3E;
  --gradient-brand: linear-gradient(135deg, var(--blue), var(--teal));

  --font: 'Poppins', sans-serif;
  --container: 1140px;
  --radius: 16px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--bone);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
p { margin: 0 0 var(--space-2); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: var(--font); }
input, textarea, select { font-family: var(--font); font-size: 1rem; }

/* Focus visible for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 var(--space-1);
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 46rem;
}
.section-title--wide {
  max-width: none;
}
@media (min-width: 640px) {
  .section-title--wide { white-space: nowrap; }
}
.section-bar {
  display: block;
  width: 90px;
  height: 4px;
  background: var(--navy);
  margin: var(--space-2) 0 var(--space-4);
  border-radius: 2px;
}
.section-bar--sm { width: 48px; height: 3px; margin: var(--space-1) 0 var(--space-2); }
.section-bar--light { background: var(--white); }
.ph {
  padding: 0 0.15em;
  border-bottom: 2px dashed var(--blue);
  color: #2E6E96;
  font-style: italic;
}

/* ---------- Layout ---------- */
.section { position: relative; padding: var(--space-5) 0; overflow: hidden; scroll-margin-top: 90px; }
.section__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); position: relative; z-index: 1; }

/* Barra navy de cierre al pie de cada bloque grande */
.navy-bar {
  display: block;
  position: relative;
  z-index: 1;
  height: 52px;
  background: var(--navy);
  width: 100%;
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
}
.navy-bar--footer { height: 6px; clip-path: none; }
.navy-bar--hero { height: 58px; margin-top: 9rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 0.5em 1.1em; font-size: 0.85rem; }
.btn--lg { padding: 0.9em 1.8em; font-size: 1rem; }
.btn--gradient { background: var(--gradient-brand); color: var(--white); box-shadow: 0 8px 20px -8px rgba(59,163,220,0.6); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }

/* ---------- Elementos gráficos de marca ---------- */
.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-width: 10px;
  pointer-events: none;
  z-index: 0;
}
.ring--blue { border-color: var(--blue); }
.ring--teal { border-color: var(--teal); }
.ring--navy { border-color: var(--navy); opacity: 0.5; }

.dot-grid {
  position: absolute;
  width: 70px;
  height: 26px;
  background-image: radial-gradient(var(--navy) 2.5px, transparent 2.6px);
  background-size: 14px 14px;
  opacity: 0.35;
  pointer-events: none;
}

.tooth-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  margin-bottom: var(--space-1);
  transition: transform 0.3s ease;
}
.tooth-icon-wrap--light { background: rgba(255,255,255,0.25); }
.tooth-icon-wrap svg { width: 22px; height: 22px; color: #FFFFFF; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px -8px rgba(21,43,78,0.35);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand__word { font-weight: 800; letter-spacing: 0.15em; color: var(--white); font-size: 1.1rem; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; }

.nav__links {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 1.2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 40;
}
.nav__links.is-open { transform: translateX(0); }
.nav__links a { text-decoration: none; color: var(--white); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    flex-direction: row;
    background: none;
    transform: none;
    gap: var(--space-3);
    font-size: 0.95rem;
  }
}

.site-header a:focus-visible, .site-header button:focus-visible {
  outline-color: var(--white);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--space-6) * 1.15);
  min-height: calc(74vh + 4.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-slide {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(0.6) blur(10px);
  animation: hero-crossfade 18s infinite;
}
.hero__bg-slide:nth-child(1) { animation-delay: 0s; }
.hero__bg-slide:nth-child(2) { animation-delay: 6s; }
.hero__bg-slide:nth-child(3) { animation-delay: 12s; }
.hero__bg-scrim { position: absolute; inset: 0; background: rgba(242,240,238,0.96); }
@keyframes hero-crossfade {
  0%, 21% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-slide { animation: none; opacity: 0; }
  .hero__bg-slide:first-child { opacity: 1; }
}

.hero__ring-a { width: 260px; height: 260px; top: -200px; left: -100px; }
.hero__ring-b { width: 160px; height: 160px; bottom: 90px; right: -60px; }
.hero__dots { top: 24px; right: 24px; }

.hero__inner {
  max-width: 46rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--space-5);
}
.hero__brand-mark {
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-size: 0.95rem;
  margin: 1.6rem 0 0.2em;
}
.hero__brand-sub {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
  opacity: 0.7;
  margin: 0 0 var(--space-2);
}
.hero__title {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.hero__lead { font-size: 1.15rem; max-width: 38rem; margin-bottom: var(--space-3); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__layout {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}
.about__body { font-size: 1.05rem; }

.experience {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 2px solid rgba(21,43,78,0.12);
}
.experience__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
.experience__item .tooth-icon-wrap { width: 34px; height: 34px; }
.experience__item .tooth-icon-wrap svg { width: 16px; height: 16px; }
.experience__item h4 { font-size: 0.8rem; margin: 0.2em 0 0.25em; }
.experience__item p { font-size: 0.72rem; line-height: 1.35; opacity: 0.85; margin: 0; }

@media (min-width: 640px) {
  .experience__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .experience__grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team__ring { width: 300px; height: 300px; top: -140px; right: -140px; }
.team .eyebrow { text-align: right; }
.team .section-title { text-align: right; margin-left: auto; }
.team .section-bar { margin-left: auto; margin-right: 0; }
.team__grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
  grid-template-columns: 1fr;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: 0 10px 30px -20px rgba(21,43,78,0.4);
}
.team-card__frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--navy);
  background: var(--bone);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}
.team-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__body { color: var(--navy); max-width: 26rem; }
.team-card__body h3 { font-size: 1.3rem; }

.team-card__facts {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(21,43,78,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}
.team-card__facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.15em;
}
.team-card__facts dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--navy);
}
.team-card__closing {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(21,43,78,0.12);
  color: var(--navy);
  opacity: 0.85;
  font-style: italic;
  text-align: left;
}
.badge-mn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--gradient-brand);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin: 0.4em 0 0.8em;
}

@media (min-width: 720px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TREATMENTS
   ========================================================================== */
.treatments__ring { width: 240px; height: 240px; bottom: -100px; left: -100px; }
.treatment-grid {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  grid-template-columns: 1fr;
  align-items: start;
}
.treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: 0 10px 30px -20px rgba(21,43,78,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--bone);
  display: flex;
  flex-direction: column;
  min-height: 230px;
}
.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px -16px rgba(21,43,78,0.45);
}
.treatment-card:hover .tooth-icon-wrap {
  transform: scale(1.1) rotate(-6deg);
}
.treatment-card h3 { font-size: 0.95rem; }
.treatment-card p { font-size: 0.84rem; }
.treatment-card--featured {
  background: var(--gradient-brand);
  color: var(--white);
  align-items: flex-start;
  border-top-color: var(--navy);
  border-bottom-color: rgba(255,255,255,0.4);
}
.treatment-card--featured h3 { color: var(--white); }
.treatment-card--featured p { color: rgba(255,255,255,0.9); }
.treatment-card--featured .btn { margin-top: auto; }

@media (min-width: 560px) {
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .treatment-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   EL CONSULTORIO (galería)
   ========================================================================== */
.space__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.space__item {
  margin: 0;
  flex: 0 1 auto;
}
.space__item img {
  display: block;
  border-radius: var(--radius);
  height: 280px;
  width: auto;
  max-width: 100%;
  box-shadow:
    0 18px 34px -14px rgba(59, 163, 220, 0.5),
    0 10px 22px -12px rgba(78, 197, 190, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Recepción (675x1200) se ve más angosta que Box de atención (900x1200);
   se la fuerza a la misma proporción 3:4 para que ocupe el mismo tamaño. */
.space__item img[src*="recepcion"] {
  aspect-ratio: 3 / 4;
  width: auto;
  object-fit: cover;
  object-position: center;
}
.space__item img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 40px -14px rgba(59, 163, 220, 0.6),
    0 14px 26px -12px rgba(78, 197, 190, 0.55);
}
.space__item figcaption { margin-top: 0.6em; font-weight: 600; font-size: 0.9rem; text-align: center; }

@media (max-width: 639px) {
  .space__item img { height: 220px; }
}

/* ==========================================================================
   PACIENTES — testimonios
   ========================================================================== */
.patients { padding-bottom: 0; }
.patients__ring { width: 220px; height: 220px; top: 40px; right: -90px; }

.testimonials {
  position: relative;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  background-image:
    linear-gradient(135deg, var(--blue), var(--teal)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><rect width='6' height='6' fill='none'/><path d='M0 0L6 6ZM6 0L0 6Z' stroke='white' stroke-width='0.4' opacity='0.15'/></svg>");
  padding: var(--space-5) 0 var(--space-4);
  margin-top: var(--space-4);
  overflow: hidden;
}
.testimonials__quote {
  position: absolute;
  top: 0.2em;
  left: 5%;
  font-size: 14rem;
  line-height: 1;
  color: var(--bone);
  opacity: 0.18;
  font-family: Georgia, serif;
  pointer-events: none;
  will-change: transform;
}
.testimonials__marquee {
  position: relative;
  overflow: hidden;
  padding: 0.4rem 0 var(--space-2);
}
.testimonials__marquee::before, .testimonials__marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.testimonials__marquee::before { left: 0; background: linear-gradient(to right, var(--blue), transparent); }
.testimonials__marquee::after { right: 0; background: linear-gradient(to left, var(--teal), transparent); }
.testimonials__track {
  display: flex;
  align-items: flex-start;
  /* Sin "gap" ni padding acá a propósito: con N tarjetas "gap" solo crea N-1
     espacios, así que la mitad del ancho total nunca coincide exactamente con
     el ancho de "una tanda" de tarjetas — eso genera un salto/parpadeo cada
     vez que el carrusel completa una vuelta. El espaciado se maneja con
     margin-right en cada tarjeta (ver .testimonial-card), que sí es simétrico:
     N tarjetas → N márgenes → translateX(-50%) cae justo en el punto exacto. */
  width: max-content;
  animation: testimonials-marquee 46s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
/* Pausar al pasar el mouse solo en dispositivos con hover real (desktop).
   En touch, ":hover" queda "pegado" al tocar y frena el carrusel para siempre
   dejando ver el fondo vacío — por eso se excluye acá. */
@media (hover: hover) and (pointer: fine) {
  .testimonials__marquee:hover .testimonials__track,
  .testimonials__marquee:focus-within .testimonials__track {
    animation-play-state: paused;
  }
}
@keyframes testimonials-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials__track { animation: none; overflow-x: auto; width: 100%; }
}

.testimonial-card {
  flex: 0 0 min(300px, 78vw);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--white);
  border-radius: 14px;
  padding: 0.5rem;
  margin-right: var(--space-3);
}
.browser-dots { display: flex; gap: 6px; padding: 0.3rem 0.5rem 0.5rem; flex-shrink: 0; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.testimonial-card__body {
  background: var(--bone);
  border-radius: 10px;
  padding: var(--space-2);
  color: var(--navy);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.5em; flex-shrink: 0; }
.testimonial-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  height: 9.1em; /* 7 líneas × line-height: mismo alto de tarjeta para todas, texto largo se corta con "…" */
}
.testimonial-card__name { font-weight: 700; margin: 0.6em 0 0; flex-shrink: 0; }
@media (max-width: 640px) {
  .testimonial-card { flex-basis: min(240px, 82vw); padding: 0.4rem; }
  .testimonial-card__body { padding: var(--space-1) 0.9rem 0.9rem; }
  .testimonial-card__body p { font-size: 0.8rem; -webkit-line-clamp: 6; height: 7.8em; }
}
.testimonials__signature {
  text-align: center;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: var(--space-4);
}
.testimonials__signature span { font-weight: 800; }

/* Antes y después */
.before-after { margin-top: var(--space-5); }
.before-after__title { font-size: 1.3rem; margin-bottom: var(--space-2); }
.before-after__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .before-after__grid { grid-template-columns: repeat(2, 1fr); }
}
.before-after__grid--single {
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin: 0 auto;
}
.ba-slider {
  position: relative;
  margin: 0;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }
.ba-slider__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 2;
}
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.3);
}
.ba-slider figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(21,43,78,0.85), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 0.7rem;
  font-size: 0.9rem;
  pointer-events: none;
}
/* Foto única antes/después (respeta su proporción original, sin recortar) */
.ba-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-photo img { display: block; width: 100%; height: auto; }
.ba-photo figcaption {
  background: linear-gradient(to top, rgba(21,43,78,0.85), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 0.7rem;
  font-size: 0.9rem;
  margin-top: -3rem;
  position: relative;
}
.legal-note { font-size: 0.78rem; opacity: 0.65; margin-top: var(--space-2); }

/* ==========================================================================
   MARCAS (marquee)
   ========================================================================== */
.brands { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bone), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bone), transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.marquee__item:hover img { filter: grayscale(0); opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; overflow-x: auto; }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact__ring { width: 200px; height: 200px; bottom: -80px; right: -80px; }
.contact .eyebrow { text-align: center; }
.contact .section-title { text-align: center; margin-left: auto; margin-right: auto; }
.contact .section-bar { margin-left: auto; margin-right: auto; }
.contact__lead { max-width: 36rem; font-size: 1.05rem; margin-left: auto; margin-right: auto; text-align: center; }
.contact__grid {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}
.form--solo { max-width: 54rem; width: 100%; margin: 0 auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--space-3);
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(3, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
}

.form-field { margin-bottom: var(--space-2); display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.form-field label { font-weight: 600; font-size: 0.9rem; text-align: center; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 2px solid rgba(21,43,78,0.15);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  text-align: center;
}
.form-field input:invalid[data-touched="true"],
.form-field textarea:invalid[data-touched="true"],
.form-field select:invalid[data-touched="true"] {
  border-color: #C0453E;
}
.form-field__error { color: #C0453E; font-size: 0.82rem; min-height: 1.1em; margin: 0; text-align: center; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: var(--space-2); width: 100%; justify-content: center; }
.form-status { margin-top: var(--space-2); font-weight: 600; min-height: 1.4em; text-align: center; }
.form-status--ok { color: #1F7A46; }
.form-status--error { color: #C0453E; }

.map-embed { border-radius: var(--radius); overflow: hidden; line-height: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--white); padding-top: var(--space-5); }
.footer__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-4);
}
.footer__brand p { margin: 0.4em 0 0; font-weight: 700; letter-spacing: 0.08em; }
.footer__tagline { font-weight: 400 !important; letter-spacing: normal !important; opacity: 0.7; font-size: 0.85rem; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8em; }
.footer__col a, .footer__col p, .footer__col span { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer__col li { margin-bottom: 0.5em; }
.site-footer .ph { color: #9FC7E0; border-color: var(--teal); }

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-bottom: 0.9em;
}
.footer__icon { flex-shrink: 0; margin-top: 0.15em; color: var(--teal); }
.footer__payment-icons { display: flex; gap: 0.4em; flex-shrink: 0; margin-top: 0.15em; }
.footer__multiline { line-height: 1.5; display: inline-block; }
.footer__col--map .map-embed { border: 1px solid rgba(255,255,255,0.15); }

@media (min-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1.1fr 0.85fr 0.95fr 1fr 0.8fr; }
}

/* ==========================================================================
   WHATSAPP BUBBLE
   ========================================================================== */
.whatsapp-bubble {
  position: fixed;
  right: var(--space-2);
  bottom: max(var(--space-2), env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(21,43,78,0.5);
  z-index: 60;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-decoration: none;
}
.whatsapp-bubble.is-visible { opacity: 1; transform: scale(1) translateY(0); }

@media (max-width: 480px) {
  .whatsapp-bubble { width: 52px; height: 52px; }
}
