/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0f172a;
  color: white;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Navbar */
.menu-toggle{
    display: none;
}
.navbar {
  background: linear-gradient(90deg, #192447, #2354d8);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.logo img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.btn-agendar {
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}

/* Hero */
.hero {
  background: #121c32;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 0;
    padding-left: 2rem;
  padding-right: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 60%;
  width: 150px;
  height: 150px;
  background: #2979ff;
  border-radius: 1rem;
  z-index: 0;
}

.hero-content {
  display: flex;
  justify-content: flex-start; /* quita el espacio entre */
  align-items: center;
  width: 95%; /* menos del 100%, deja margen derecho */
  max-width: 1100px; /* opcional, control más estricto */
  gap: 2rem; 
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  margin-left: auto;  /* para que quede alineado a la derecha */
  margin-right: 0rem; /* espacio extra a la derecha */
}


.hero-text {
  max-width: 50%;
  padding-left: 1rem; /* espacio desde el borde izquierdo */
  padding-right: 1rem; /* opcional, si quieres más aire a la derecha */
}

.badge {
  background: linear-gradient(135deg, #f59e0b, #d97706); /* degradado naranja dorado */
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
  letter-spacing: 0.03em;
  transition: background 0.3s ease;
  cursor: default;
}

.badge:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.7);
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: #f59e0b;
}

.hero-text p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.hero-buttons a {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 1rem;
  display: inline-block;
}

.btn-primary {
  background: #f59e0b;
  color: white;
  border-radius: 0;
}

.btn-secondary {
  color: white;
  border: 1px solid white;
  border-radius: 0;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  color: #cbd5e1;
}

.hero-img {
  max-width: 50%;
  height: auto;
  display: flex;
  align-items: flex-end;
  position: relative;
}


.hero-img::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -20px;
  width: 80px;
  height: 80px;
  background: #1e3a8a;
  border-radius: 1rem;
  z-index: 0;
}

.hero-img img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}

/* Secciones */
.section {
  background: #1a2c54;
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-title span {
  color: #f59e0b;
}

.section-subtitle {
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.specializations,
.agenda-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card,
.agenda-card {
  background: #263e84;
  padding: 2rem;
  color: white;
  border-radius: 1rem;
  position: relative;
}

.card-icon,
.agenda-card .card-icon,
.info-icon {
  background: #f59e0b;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.card-icon img,
.agenda-card .card-icon img,
.info-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card a {
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  color: #f59e0b;
  font-weight: 500;
}

.agenda-card strong {
  display: block;
  margin: 1rem 0;
  color: #f59e0b;
  font-size: 1.1rem;
}

.btn-small {
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0;
  display: inline-block;
  font-size: 0.9rem;
}

/* Estadísticas */
.stats {
  background: #14223c;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 2rem 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.stats span {
  color: #f59e0b;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

/* Contacto */
.contacto {
  background: #1a2c54;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info span {
  color: #f59e0b;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-icon {
  background: #f59e0b;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.info-icon i {
  color: white;
  font-size: 24px;
}

.info-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.contact-form {
  flex: 1;
  background: #263e84;
  padding: 2rem;
  border-radius: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
}

.contact-form button {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 0;
}

/* Footer */
.footer {
  background: #0f172a;
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer h4 {
  margin-bottom: 1rem;
  color: #f59e0b;
}

.footer ul {
  list-style: none;
  padding: 0;
  color: #cbd5e1;
}

.footer .social {
  margin-top: 1rem;
}

.footer .social a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social a:hover,
.footer .social a.hovered {
  color: #f59e0b;
  transform: scale(1.2);
}

.copy {
  font-size: 0.8rem;
  color: #94a3b8;
}




/* Responsive general para pantallas pequeñas */
@media (max-width: 768px) {
  /* Navbar: menú hamburguesa */
  .navbar .container {
    justify-content: space-between;
    position: relative;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    z-index: 300;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    right: 0%;
    background: #192447;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 200;
    box-shadow: -4px 0 10px rgba(0,0,0,0.4);
  }

  .nav-links.open {
    display: block;
  }

  .nav-links li {
    margin-bottom: 1.5rem;
  }

  .btn-agendar {
    width: 100%;
    text-align: center;
  }

  /* Texto del menú un poco más grande */
  .nav-links,
  .nav-links li a {
    font-size: 1.1rem;
  }

  /* Contenedor con padding para que no pegue al borde */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero: texto e imagen en columna y ancho completo */
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero-img {
    max-width: 100%;
    margin-top: 2rem;
  }

  /* Scroll horizontal para specializations y agenda-cards */
  .specializations,
  .agenda-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* scroll suave iOS */
  }

  /* Tarjetas en scroll horizontal */
  .specializations > div,
  .agenda-cards > div {
    flex: 0 0 80%;        /* ancho de tarjeta en móvil */
    scroll-snap-align: start;
    background: #263e84;
    border-radius: 1rem;
    padding: 1.5rem;
    min-width: 250px;
    box-sizing: border-box;
  }

  /* Formularios más legibles */
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 1rem;
  }

  /* Ajuste botones y espacios para móvil */
  .hero-buttons a {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-buttons a:last-child {
    margin-bottom: 0;
  }

  /* Estadísticas: vertical y centradas */
  .stats {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Contacto: columna y ancho completo */
  .contacto {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}

/* Bloquear scroll en body cuando menú abierto */
body.menu-open {
  overflow: hidden;
}
