/* =================================================================
   LUXURY LAB - Laboratorio Dental Digital
   styles.css
   Paleta:
     Dorado premium: #D4AF37
     Negro:          #0A0A0A
     Blanco:         #FFFFFF
     Gris claro:     #F5F5F5
     Gris texto:     #666666
   ================================================================= */

/* ---------- Variables ---------- */
:root {
  --gold: #d4af37;
  --gold-soft: #e6cd7a;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-text: #666666;
  --border: #e6e6e6;

  --header-h: 76px;
  --radius: 12px;
  --maxw: 1200px;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 10, 10, 0.1);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

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

/* ---------- Accesibilidad ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}
.btn--gold:hover {
  background: #c6a02e;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.4);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}
.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------- Eyebrow / titulos de seccion ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--gold {
  color: var(--gold);
}

.section {
  padding: 96px 0;
}

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.section__intro {
  margin-top: 16px;
  color: var(--gray-text);
  font-size: 1.05rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* =================================================================
   HEADER
   ================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
}
.header__logo img {
  display: block;
  width: 124px;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 28px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--gold);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}
.nav__cta {
  margin-left: auto;
}

/* Hamburguesa */
.hamburger {
  display: none;
  position: relative;
  margin-left: auto;
  z-index: 101;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.6) 45%,
    rgba(10, 10, 10, 0.3) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.hero__trust {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* =================================================================
   BARRA DE CONFIANZA
   ================================================================= */
.trustbar {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
}
.trustbar__item .icon {
  color: var(--gold);
  flex-shrink: 0;
}

/* =================================================================
   BENEFICIOS
   ================================================================= */
.benefits {
  background: var(--white);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit {
  padding: 40px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.benefit:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.benefit__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gray-light);
  color: var(--gold);
  margin-bottom: 22px;
}
.benefit__icon .icon {
  width: 30px;
  height: 30px;
}
.benefit h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.benefit p {
  color: var(--gray-text);
}

/* =================================================================
   SERVICIOS
   ================================================================= */
.services {
  background: var(--gray-light);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service:hover .service__media img {
  transform: scale(1.06);
}
.service__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service__body h3 {
  font-size: 1.3rem;
}
.service__body p {
  color: var(--gray-text);
  font-size: 0.92rem;
  flex: 1;
}
.service__link {
  margin-top: 10px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--black);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
  display: inline-flex;
  gap: 6px;
}
.service__link:hover {
  color: var(--gold);
}

/* =================================================================
   TECNOLOGIA
   ================================================================= */
.tech {
  background: var(--white);
}
.tech__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 64px;
}
.tech__row--reverse .tech__media {
  order: 2;
}
.tech__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tech__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.tech__text h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  position: relative;
  padding-left: 22px;
}
.tech__text h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.tech__text p {
  color: var(--gray-text);
  font-size: 1.05rem;
}
.tech__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.tech__card {
  padding: 30px 28px;
  border-left: 4px solid var(--gold);
}
.tech__card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.tech__card p {
  color: var(--gray-text);
}

/* =================================================================
   PROCESO / TIMELINE
   ================================================================= */
.process {
  background: var(--gray-light);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.2));
  z-index: 0;
}
.timeline__step {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 6px;
}
.timeline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--gold);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.timeline__step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.timeline__step p {
  color: var(--gray-text);
  font-size: 0.9rem;
}
.process__cta {
  text-align: center;
  margin-top: 56px;
}

/* =================================================================
   GALERIA
   ================================================================= */
.gallery {
  background: var(--white);
}
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--gray-text);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter:hover {
  border-color: var(--gold);
  color: var(--black);
}
.filter.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--black);
  border: 0;
  padding: 0;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.07);
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.8));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery__item.is-hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lightbox__cap {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 0.95rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--black);
}
.lightbox__close {
  top: 22px;
  right: 22px;
}
.lightbox__nav--prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

/* =================================================================
   POR QUE LUXURY LAB (fondo negro)
   ================================================================= */
.why {
  background: var(--black);
  color: var(--white);
}
.why .eyebrow {
  color: var(--gold);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.why__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-weight: 500;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.why__item:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.why__dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.why__highlight {
  max-width: 780px;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

/* =================================================================
   NOSOTROS
   ================================================================= */
.about {
  background: var(--white);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.about__text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 8px 0 20px;
}
.about__text p {
  color: var(--gray-text);
  margin-bottom: 16px;
}
.about__text .btn {
  margin-top: 12px;
}

/* =================================================================
   TESTIMONIOS
   ================================================================= */
.testimonials {
  overflow: hidden;
  background: var(--gray-light);
}
.testimonials__head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.testimonials__head .eyebrow {
  color: var(--gold);
}
.testimonials__head h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
}
.testimonials__head p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--gray-text);
  line-height: 1.6;
}
.testimonials__carousel {
  position: relative;
}
.testimonials__viewport {
  overflow-x: auto;
  padding: 8px 42px 24px 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.testimonials__viewport::-webkit-scrollbar {
  display: none;
}
.testimonials__viewport:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  border-radius: var(--radius);
}
.testimonials__track {
  display: flex;
  align-items: stretch;
  gap: 22px;
}
.testimonial {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 44px) / 3);
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  padding: 30px 28px;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--shadow-md);
}
.testimonial__stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}
.testimonial blockquote {
  flex: 1;
  color: var(--black);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testimonial__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.testimonial__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--black);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}
.testimonial__role {
  color: var(--gray-text);
  font-size: 0.83rem;
}
.testimonial__clinic {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}
.testimonial--cta {
  justify-content: center;
  color: var(--white);
  background: var(--black);
  border-color: var(--gold);
}
.testimonial--cta:hover {
  border-color: var(--gold);
}
.testimonial--cta__label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.testimonial--cta h3 {
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1.25;
}
.testimonial--cta p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}
.testimonial--cta .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.testimonials__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.testimonials__arrow:hover:not(:disabled) {
  color: var(--black);
  background: var(--gold);
}
.testimonials__arrow:disabled {
  cursor: default;
  opacity: 0.28;
}
.testimonials__arrow--prev { left: -21px; }
.testimonials__arrow--next { right: -21px; }
@media (max-width: 980px) {
  .testimonial { flex-basis: calc((100% - 22px) / 2); }
  .testimonials__arrow--prev { left: -8px; }
  .testimonials__arrow--next { right: -8px; }
}
@media (max-width: 640px) {
  .testimonials__head h2 { font-size: 1.8rem; }
  .testimonials__viewport { padding-right: 34px; }
  .testimonials__track { gap: 16px; }
  .testimonial {
    flex-basis: 100%;
    min-height: 370px;
    padding: 28px 24px;
  }
  .testimonials__arrow {
    top: auto;
    bottom: -28px;
  }
  .testimonials__arrow--prev { left: calc(50% - 50px); }
  .testimonials__arrow--next { right: calc(50% - 50px); }
}

/* =================================================================
   CTA
   ================================================================= */
.cta {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding: 96px 0;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.82);
}
.cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.cta__content h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 18px;
}
.cta__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 34px;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* =================================================================
   CONTACTO
   ================================================================= */
.contact {
  background: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact__info h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 8px 0 28px;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__list .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__list a:hover {
  color: var(--gold);
}
.contact__location {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__location h3,
.national-card h3 {
  font-size: 1.45rem;
}
.contact__location > p {
  color: var(--gray-text);
  line-height: 1.6;
}
.contact__map {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gray-light);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}
.contact__map-link {
  align-self: flex-start;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.contact__map-link:hover {
  color: var(--black);
}
.national-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.national-card p {
  color: var(--gray-text);
  line-height: 1.6;
}
.national-card p strong {
  color: var(--black);
}
.national-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.national-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 500;
}
.national-card__features span {
  color: var(--gold-dark);
  font-weight: 700;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact__form-wrap {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
}
.contact__form-wrap h3 {
  font-size: 1.7rem;
  margin-bottom: 24px;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--half {
  grid-column: span 1;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}
.field label span {
  color: var(--gold);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.field textarea {
  resize: vertical;
}
.field.has-error input,
.field.has-error select {
  border-color: #c0392b;
}
.form__error {
  grid-column: 1 / -1;
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 500;
}
.form__note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gray-text);
  text-align: center;
}
.contact__form .btn {
  grid-column: 1 / -1;
}
.coverage-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.coverage-card__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coverage-card__heading h3 {
  max-width: 560px;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.18;
}
.coverage-card__heading p,
.coverage-card__note {
  color: var(--gray-text);
  line-height: 1.55;
}
.coverage-visual {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.coverage-visual__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
}
.coverage-visual__copy strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.coverage-visual__copy span {
  color: var(--gray-text);
  font-size: 0.82rem;
}
.coverage-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  object-fit: contain;
  border-radius: 10px;
}
.coverage-map__routes path {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.25;
  stroke-dasharray: 4 5;
  opacity: 0.58;
}
.coverage-map__clinics circle {
  fill: var(--gold-dark);
  stroke: var(--white);
  stroke-width: 2;
}
.coverage-map__origin > circle:not(.coverage-map__pulse),
.coverage-map__origin path {
  fill: var(--black);
}
.coverage-map__pulse {
  fill: var(--gold);
  opacity: 0.28;
  transform-box: fill-box;
  transform-origin: center;
  animation: coverage-pulse 2.6s ease-out infinite;
}
@keyframes coverage-pulse {
  0% { transform: scale(0.65); opacity: 0.48; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}
.coverage-map__legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  margin: -26px 0 0 auto;
  padding: 9px 12px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.coverage-map__legend strong {
  font-size: 0.82rem;
}
.coverage-map__legend span {
  color: var(--gray-text);
  font-size: 0.68rem;
}
.coverage-visual__sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--black);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.coverage-benefits .icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--gold-dark);
}
.coverage-benefits h4 {
  margin-bottom: 3px;
  font-size: 0.78rem;
  line-height: 1.25;
}
.coverage-benefits p {
  color: var(--gray-text);
  font-size: 0.69rem;
  line-height: 1.4;
}
.coverage-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.coverage-benefits article {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.coverage-card__note {
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
}
@media (max-width: 560px) {
  .coverage-card { padding: 22px; }
  .coverage-visual { padding: 18px 12px; }
  .coverage-map { margin-top: 14px; }
  .coverage-benefits { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .coverage-map__pulse { animation: none; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 72px 24px 48px;
}
.footer__logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.footer__brand img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 900 / 568;
  object-fit: contain;
  object-position: left center;
}
.footer__brand p {
  font-size: 0.92rem;
  max-width: 300px;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--gold);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.footer__dev {
  color: var(--gold);
}

/* =================================================================
   WHATSAPP FLOTANTE
   ================================================================= */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 72px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  font-weight: 600;
  font-size: 0.95rem;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover {
  transform: translateY(-2px);
}
.wa-float__icon {
  width: 30px;
  height: 30px;
  fill: var(--white);
  flex-shrink: 0;
}
@keyframes wa-pulse {
  0% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =================================================================
   ANIMACIONES (reveal con IntersectionObserver)
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Menu movil overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }
  .hamburger {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 20px) 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -10px 0 40px rgba(10, 10, 10, 0.12);
    z-index: 100;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav__list li {
    border-bottom: 1px solid var(--border);
  }
  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }
  .nav__cta {
    margin: 24px 0 0;
    width: 100%;
  }

  .trustbar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .tech__row {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 48px;
  }
  .tech__row--reverse .tech__media {
    order: 0;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .timeline::before {
    display: none;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why__grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    min-height: 88vh;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .trustbar__grid {
    grid-template-columns: 1fr;
  }
  .services__grid,
  .gallery__grid,
  .tech__cards,
  .why__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .contact__form {
    grid-template-columns: 1fr;
  }
  .field--half {
    grid-column: 1 / -1;
  }
  .contact__form-wrap {
    padding: 30px 22px;
  }
  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
  }
  /* Boton flotante: solo icono en movil */
  .wa-float {
    padding: 14px;
    right: 16px;
    bottom: 64px;
  }
  .wa-float__label {
    display: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
