/* ==========================================================================
   Dr. Pava — Implantología Oral y Reconstructiva
   Identidad premium: índigo profundo (logo oficial) + marfil cálido + dorado champán
   Tipografía: Cormorant Garamond (display) · Albert Sans (cuerpo)
   ========================================================================== */

:root {
  --ink: #26244f;
  --ink-soft: #45436e;
  --indigo: #3d3a96;
  --indigo-soft: #7572bb;
  --indigo-deep: #232057;
  --indigo-night: #171430;
  --ivory: #faf8f3;
  --ivory-tint: #f2eee4;
  --white: #ffffff;
  --gold: #b08d4f;
  --gold-soft: #d6bd8a;
  --muted: #6f6d8a;
  --hairline: rgba(38, 36, 79, 0.14);
  --hairline-light: rgba(250, 248, 243, 0.16);
  --whatsapp: #25d366;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Albert Sans", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px -28px rgba(23, 20, 48, 0.28);
  --shadow-card: 0 16px 40px -24px rgba(23, 20, 48, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--indigo); color: var(--ivory); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   Utilidades de animación (reveal on scroll)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Barra de progreso */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s, color 0.35s, border-color 0.35s;
}

.btn svg { width: 1.2em; height: 1.2em; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--indigo);
  color: var(--ivory);
  box-shadow: 0 18px 40px -16px rgba(61, 58, 150, 0.55);
}
.btn--primary:hover {
  background: var(--indigo-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(35, 32, 87, 0.6);
}

.btn--ghost {
  border-color: var(--hairline);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--indigo); transform: translateY(-2px); }

.btn--outline {
  border-color: var(--gold);
  color: var(--indigo);
}
.btn--outline:hover { background: var(--indigo); border-color: var(--indigo); color: var(--ivory); transform: translateY(-2px); }

.btn--light {
  background: var(--ivory);
  color: var(--indigo-deep);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.45); }

.btn--lg { padding: 1.1rem 2.3rem; }
.btn--full { width: 100%; }

/* ==========================================================================
   Navegación
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 1.1rem 0;
  transition: padding 0.4s var(--ease-out), background-color 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 0.6rem 0;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }

.nav__logo {
  width: 42px;
  height: auto;
  transition: transform 0.4s var(--ease-out);
}
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.06); }

.nav__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav__name strong { color: var(--indigo); font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover, .nav__link.is-active { color: var(--indigo); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { padding: 0.7rem 1.4rem; font-size: 0.74rem; }

/* Selector de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
}

.lang__btn {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.lang__btn:hover { color: var(--indigo); }
.lang__btn.is-active {
  background: var(--indigo);
  color: var(--ivory);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4.5rem;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__halo {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 79, 0.13), transparent 65%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero__eyebrow-line { flex: 0 0 44px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 6.6vw, 5.2rem);
  line-height: 1.02;
  color: var(--indigo-deep);
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  font-style: italic;
  font-weight: 500;
  color: var(--indigo);
}

.hero__subtitle {
  max-width: 32rem;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
}

.stat { padding-right: 1.7rem; }
.stat + .stat { padding-left: 1.7rem; border-left: 1px solid var(--hairline); }

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--indigo);
}
.stat__label { font-size: 0.82rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

/* Retrato del doctor */
.hero__visual { display: grid; justify-items: center; }

.hero__portrait {
  position: relative;
  width: min(100%, 400px);
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -16px -16px 40px auto;
  width: 100%;
  border: 1px solid var(--gold-soft);
  border-radius: 999px 999px var(--radius) var(--radius);
  transform: translateX(16px);
  z-index: 0;
}

.hero__portrait > img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.hero__caption {
  position: absolute;
  left: -1.6rem;
  bottom: 1.8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-card);
  line-height: 1.35;
}

.hero__caption-logo { width: 36px; height: auto; }

.hero__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--indigo-deep);
}
.hero__caption small {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll-dot {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   Pilares de confianza
   ========================================================================== */

.trust { padding: 0 0 1rem; position: relative; z-index: 2; }

.trust__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  margin-top: -2.5rem;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.trust__item:not(:last-child) { border-right: 1px solid var(--hairline); }

.trust__icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  transition: transform 0.4s var(--ease-out), background-color 0.4s, color 0.4s;
}
.trust__icon svg { width: 24px; height: 24px; }
.trust__item:hover .trust__icon { transform: scale(1.08); background: var(--indigo); color: var(--ivory); border-color: var(--indigo); }

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--indigo-deep);
  line-height: 1.3;
}
.trust__item p { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */

.section { padding: 7rem 0; }
.section--dark {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(61, 58, 150, 0.45), transparent 55%),
    var(--indigo-deep);
  color: var(--ivory);
}
.section--tint { background: var(--ivory-tint); }

.section__head { max-width: 46rem; margin-bottom: 4rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.section__eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section__title em { color: var(--indigo); font-weight: 500; }
.section--dark .section__title em { color: var(--gold-soft); }

.section__lead { color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.section--dark .section__lead { color: rgba(250, 248, 243, 0.7); }

/* ==========================================================================
   Sobre el doctor
   ========================================================================== */

.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.about__frame { position: relative; }

.about__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about__photo img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.about__frame::before {
  content: "";
  position: absolute;
  inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__seal {
  position: absolute;
  right: -1.4rem;
  bottom: 2rem;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--indigo-deep);
  color: var(--ivory);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gold);
  outline: 4px solid var(--ivory);
  animation: sealSpinIn 1s var(--ease-out) both;
}

@keyframes sealSpinIn {
  from { transform: rotate(-14deg) scale(0.7); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

.about__text { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.02rem; text-wrap: pretty; }
.about__text strong { color: var(--indigo-deep); font-weight: 600; }
.about__text em { color: var(--indigo); font-family: var(--font-display); font-size: 1.16em; }

.about__values { margin-top: 2.2rem; display: grid; gap: 1.4rem; }

.about__values li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.about__value-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--white);
  color: var(--gold);
}
.about__value-icon svg { width: 22px; height: 22px; }

.about__values strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--indigo-deep); }
.about__values p { color: var(--muted); font-size: 0.93rem; }

/* ==========================================================================
   Implantes dentales (reutiliza el layout de "Sobre el doctor")
   ========================================================================== */

.implants__subtitle {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--indigo-deep);
  margin-top: 2.6rem;
}

.implants__note {
  margin-top: 1.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: pretty;
}
.implants__note a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.implants__note a:hover { color: var(--indigo-deep); }

/* Carrusel de imágenes del implante (cross-fade automático) */
.implants__carousel { position: relative; aspect-ratio: 0.92; }
.implants__carousel .implants__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.implants__carousel .implants__slide.is-current { opacity: 1; }

.implants__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.implants__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 248, 243, 0.55);
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.3s;
}
.implants__dot.is-current { width: 22px; background: var(--ivory); }

/* ==========================================================================
   Servicios
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-card {
  position: relative;
  padding: 2.2rem 1.9rem 2rem;
  border-radius: var(--radius);
  background: rgba(250, 248, 243, 0.035);
  border: 1px solid var(--hairline-light);
  transition: transform 0.45s var(--ease-out), background-color 0.45s, border-color 0.45s;
}

.service-card:hover {
  transform: translateY(-7px);
  background: rgba(250, 248, 243, 0.07);
  border-color: rgba(214, 189, 138, 0.5);
}

.service-card__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.service-card__num::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  margin-top: 0.9rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--ivory);
}

.service-card p { font-size: 0.92rem; color: rgba(250, 248, 243, 0.66); }

/* ==========================================================================
   Proceso
   ========================================================================== */

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.process__step {
  position: relative;
  padding: 2.2rem 1.6rem 2rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}

.process__step:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-card);
}

.process__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--indigo-deep);
}

.process__step p { font-size: 0.9rem; color: var(--muted); }

/* ==========================================================================
   Testimonios
   ========================================================================== */

.testimonials__slider { max-width: 760px; margin-inline: auto; }

.testimonials__track {
  display: grid;
  grid-template-areas: "stack";
}

.testimonial {
  grid-area: stack;
  text-align: center;
  padding: 1rem 1.5rem;
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}

.testimonial.is-current {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  height: 2.4rem;
  color: var(--gold);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.6rem;
  text-wrap: pretty;
}

.testimonial figcaption strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
}
.testimonial figcaption span { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.04em; }

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.testimonials__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--indigo);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease-out), border-color 0.35s;
}
.testimonials__btn svg { width: 20px; height: 20px; }
.testimonials__btn:hover { background: var(--indigo); color: var(--ivory); border-color: var(--indigo); transform: scale(1.06); }

.testimonials__dots { display: flex; gap: 0.55rem; }

.testimonials__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: var(--hairline);
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.4s;
}
.testimonials__dot.is-current { width: 26px; background: var(--gold); }

.testimonials__instagram {
  margin-top: 3.6rem;
  text-align: center;
}
.testimonials__instagram p { color: var(--muted); margin-bottom: 1rem; font-weight: 500; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(61, 58, 150, 0.5), transparent 55%),
    var(--indigo-night);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta__content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
.cta__content p { color: rgba(250, 248, 243, 0.68); font-size: 1.05rem; }

.cta__motto {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.25em;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.contact__list { margin-top: 2.4rem; display: grid; gap: 1.6rem; }

.contact__list li { display: flex; gap: 1.1rem; align-items: flex-start; }

.contact__icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--white);
  color: var(--gold);
}
.contact__icon svg { width: 22px; height: 22px; }

.contact__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--indigo-deep);
  margin-bottom: 0.1rem;
}
.contact__list a, .contact__list span { color: var(--muted); font-size: 0.95rem; }
.contact__list a:hover { color: var(--indigo); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.contact__form h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  color: var(--indigo-deep);
}

.form__group { margin-bottom: 1.25rem; }

.form__group label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.form__group label small { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(61, 58, 150, 0.13);
}

.form__group input.is-invalid { border-color: #c0563c; }

.form__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--indigo-night);
  color: rgba(250, 248, 243, 0.72);
  padding: 4rem 0 1.8rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--hairline-light);
}

.footer__logo-chip {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--ivory);
  padding: 8px;
  margin-bottom: 0.9rem;
}
.footer__logo-chip img { width: 100%; height: 100%; object-fit: contain; }

.footer .nav__name { display: block; color: var(--ivory); }
.footer .nav__name strong { color: var(--gold-soft); }
.footer__brand p { margin-top: 0.7rem; font-size: 0.92rem; max-width: 26rem; }

.footer__links { display: grid; gap: 0.65rem; }
.footer__links a { font-size: 0.92rem; transition: color 0.3s, transform 0.3s var(--ease-out); display: inline-block; }
.footer__links a:hover { color: var(--gold-soft); transform: translateX(4px); }

.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out), color 0.35s;
}
.footer__social svg { width: 21px; height: 21px; }
.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--indigo-night);
  transform: translateY(-4px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.7rem;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.45);
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 950;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  animation: fabPulse 2.6s ease-in-out infinite;
}
.whatsapp-fab svg { width: 29px; height: 29px; }
.whatsapp-fab:hover { transform: scale(1.1); animation-play-state: paused; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  60% { box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .nav__toggle { display: flex; z-index: 960; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.9rem;
    background: rgba(250, 248, 243, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
    z-index: 940;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1.3rem; }

  /* Con el menú abierto, el nav no debe filtrar: un backdrop-filter en el
     ancestro crea un bloque contenedor que atrapa el overlay fixed y lo
     encoge a la altura de la barra. Lo neutralizamos mientras está abierto. */
  .nav:has(.nav__links.is-open) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .hero { padding-top: 7.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .hero__portrait { width: min(100%, 320px); }
  .hero__caption { left: -0.6rem; }

  .trust__strip { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .trust__item:not(:last-child) { border-right: 0; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 3.2rem; }
  .about__media { max-width: 430px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 4.8rem 0; }

  .hero { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero__portrait { width: min(100%, 270px); }
  .hero__caption { padding: 0.65rem 0.9rem; }
  .hero__caption strong { font-size: 1rem; }

  .stat { padding-right: 1.2rem; }
  .stat + .stat { padding-left: 1.2rem; }
  .stat__number { font-size: 2rem; }
  .stat__label { font-size: 0.74rem; }

  .trust__strip { grid-template-columns: 1fr; padding: 1.6rem 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .cta__inner { justify-content: center; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .contact__form { padding: 2rem 1.5rem; }
  .about__seal { right: 0.5rem; width: 100px; height: 100px; }
  .about__frame::before { inset: 1.2rem -0.8rem -0.8rem 1.2rem; }
}
