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

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #1B4F8A;
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: .9rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 3px solid #2ABFBF;
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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


/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-brand-icon {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B4F8A;
}

.nav-brand-sub {
  font-size: .75rem;
  color: #666;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1B4F8A;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1B4F8A;
  border-radius: 1px;
}

.nav-cta {
  background: #2ABFBF;
  color: #fff !important;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .85rem;
  transition: background .3s, transform .2s;
}

.nav-cta:hover {
  background: #22a8a8;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 14px 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.btn-primary {
  background: #2ABFBF;
  color: #fff;
}

.btn-primary:hover {
  background: #22a8a8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 191, 191, .35);
}

.btn-outline {
  background: transparent;
  color: #1B4F8A;
  border: 2px solid #1B4F8A;
}

.btn-outline:hover {
  background: #1B4F8A;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #1B4F8A;
}

.btn-white:hover {
  background: #F4F9FC;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}


/* ── Section base ── */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1B4F8A;
  text-align: center;
  margin-bottom: .5rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}


/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── Hero ── */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(170deg, #fff 60%, #F4F9FC 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1B4F8A;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #F4F9FC;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  color: #1B4F8A;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(27, 79, 138, .18);
}


/* ── Cuándo consultar ── */
.cuando {
  background: #F4F9FC;
}

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

.cuando-card {
  background: #fff;
  border: 1px solid #d0e8f2;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.cuando-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(27, 79, 138, .1);
  border-color: #1B4F8A;
}

.cuando-card-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0 auto .75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.cuando-card i {
  font-size: 2.5rem;
  color: #1B4F8A;
  margin-bottom: 1rem;
}

.cuando-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B4F8A;
  margin-bottom: .5rem;
}

.cuando-card p {
  font-size: .9rem;
  color: #666;
}


/* ── Servicios ── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.servicio-card {
  background: #fff;
  border: 1px solid #d0e8f2;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.servicio-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(27, 79, 138, .1);
  border-color: #2ABFBF;
}

.servicio-card-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.servicio-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B4F8A;
  margin-bottom: .5rem;
}

.servicio-card p {
  font-size: .88rem;
  color: #666;
  margin-bottom: 1rem;
}

.servicio-card .card-link {
  color: #2ABFBF;
  font-weight: 600;
  font-size: .88rem;
  transition: color .3s;
}

.servicio-card .card-link:hover {
  color: #22a8a8;
}


/* ── Sobre mí ── */
.sobre {
  background: #1B4F8A;
  color: #fff;
}

.sobre .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.sobre-photo {
  display: flex;
  justify-content: center;
}

.sobre-photo-frame {
  padding: 4px;
  border: 3px solid #2ABFBF;
  border-radius: 16px;
  display: inline-block;
}

.sobre-photo-img {
  width: 100%;
  max-width: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  display: block;
}

.sobre-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.sobre-text .sobre-specialty {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1.25rem;
}

.sobre-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.sobre-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .1);
  padding: .7rem 1rem;
  border-radius: 10px;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
}

.sobre-badge i {
  color: #2ABFBF;
  font-size: 1.1rem;
  min-width: 20px;
}


/* ── Consulta / Pasos ── */
.pasos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.pasos-row::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16%;
  width: 68%;
  height: 2px;
  background: #c8dff0;
  z-index: 0;
}

.paso {
  text-align: center;
  position: relative;
  z-index: 1;
}

.paso-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1B4F8A;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}

.paso h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B4F8A;
  margin-bottom: .4rem;
}

.paso p {
  font-size: .9rem;
  color: #666;
  max-width: 260px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
  max-width: 60rem;
  align-items: center;
}

.info-grid-cards {
  display: grid;
  gap: 1.5rem;
}

.info-grid-photo {
  display: flex;
  justify-content: center;
}

.consultorio-img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  object-fit: cover;
}

.info-card {
  background: #F4F9FC;
  padding: 1.8rem 1.5rem;
  border-radius: 14px;
  text-align: center;
}

.info-card i {
  font-size: 2rem;
  color: #1B4F8A;
  margin-bottom: .75rem;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B4F8A;
  margin-bottom: .5rem;
}

.info-card p {
  font-size: .9rem;
  color: #555;
}

.info-card .price {
  font-weight: 700;
  color: #1B4F8A;
}


/* ── Testimonios ── */
.testimonios {
  background: #F4F9FC;
  position: relative;
}

.testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./assets/testimonios-bg.png') center / cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.testimonios .container {
  position: relative;
  z-index: 1;
}

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

.testimonio-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  position: relative;
}

.testimonio-card .quote-icon {
  font-size: 2.5rem;
  color: #c8e6f0;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.stars {
  color: #f4b400;
  margin-bottom: .75rem;
  font-size: .95rem;
  letter-spacing: 2px;
}

.testimonio-card p {
  font-size: .95rem;
  color: #444;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonio-card .author {
  font-weight: 600;
  color: #1B4F8A;
  font-size: .88rem;
}

.testimonios-note {
  text-align: center;
  margin-top: 2rem;
  font-size: .8rem;
  color: #6B6B6B;
}

.testimonios-note a {
  color: #1B4F8A;
  text-decoration: underline;
}


/* ── Ubicación ── */
.ubicacion .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mapa-wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  height: 380px;
}

.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: #444;
}

.contacto-item i {
  color: #1B4F8A;
  font-size: 1.15rem;
  min-width: 22px;
  margin-top: 3px;
}

.contacto-item a {
  color: #1B4F8A;
  font-weight: 500;
  transition: color .3s;
}

.contacto-item a:hover {
  color: #2ABFBF;
}


/* ── CTA Final ── */
.cta-final {
  background: url('./assets/cta-background.png') center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 79, 138, .88), rgba(22, 62, 110, .85));
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.cta-final p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Footer ── */
.footer {
  background: #0D1B2A;
  color: rgba(255, 255, 255, .75);
  padding: 3rem 0 1.5rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .footer-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: .25rem;
}

.footer-brand .footer-sub {
  font-size: .8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .88rem;
  transition: color .3s;
}

.footer-links a:hover {
  color: #2ABFBF;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .7);
  transition: background .3s, color .3s;
}

.footer-social a:hover {
  background: #2ABFBF;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}


/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: transform .3s, box-shadow .3s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, .5);
}

.wa-float i {
  font-size: 1.8rem;
  color: #fff;
}


/* ── Mobile nav overlay ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, .98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1B4F8A;
}

.mobile-nav .mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #333;
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img {
    max-width: 360px;
    max-height: 400px;
  }

  .sobre .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sobre-photo {
    order: -1;
  }

  .sobre-photo-img {
    max-width: 280px;
  }

  .ubicacion .container {
    grid-template-columns: 1fr;
  }

  .mapa-wrapper {
    height: 300px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .cuando-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pasos-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pasos-row::before {
    display: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .consultorio-img {
    max-width: 320px;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ── WhatsApp disclaimer ── */
.wa-disclaimer {
  font-size: .78rem;
  color: #6B6B6B;
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  justify-content: center;
}

/* ── Footer legal ── */
.footer-legal {
  display: block;
  margin-top: .4rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fade-up.visible {
    opacity: 1;
    transform: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .cuando-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .btn-lg {
    padding: .85rem 1.5rem;
    font-size: 1rem;
  }
}
