/* Estilos generales */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 90px 0 0 0; /* Aplica el margen superior de 80px */
  padding: 0;
  background-image: url(../img/fondo.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f0f4fc;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  position: fixed; /* Cambiado de relative a fixed */
  top: 0; /* Asegura que se fije en la parte superior de la página */
  left: 0;
  width: 100%; /* Asegura que el header cubra todo el ancho de la pantalla */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Añade una sombra para darle profundidad */
}

.logo img {
  width: 120px;
}
/* Estilo de la navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  font-family: "Kanit", sans-serif;
  text-decoration: none;
  color: #333;
  font-weight: 700;
}

/* Botón del call center */
.call-center-btn {
  background-color: #1e8a20;
  text-decoration: none;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
}

/* Estilo del main y la sección hero */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.hero {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 850px;
  padding: 100px 100px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 200px;
  width: 100%;
}

.hero-text {
  max-width: 600px;
}

/* Estilo del subheading */
.subheading {
  font-family: "Kanit", sans-serif;
  color: #1e90ff;
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 20px;
}

/* Estilo del título principal */
h1 {
  font-family: "Anton", sans-serif;
  font-size: 5rem; /* Incrementa el tamaño de la fuente */
  color: #1e8a20;
  margin-bottom: 20px;
  letter-spacing: 2px; /* Aumenta el espaciado entre las letras */
  text-transform: uppercase; /* Asegura que todo esté en mayúsculas */
  transform: scaleX(1.2); /* Estira el texto horizontalmente */
}

/* Estilo del párrafo */
p {
  font-family: "Kanit", sans-serif;
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 30px;
}

/* Botón de cita */
.appointment-btn {
  background-color: #1e90ff;
  text-decoration: none;
  color: white;
  border: none;
  padding: 20px 40px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Estilo de la imagen en la sección hero */
.hero-image {
  position: relative;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

/* Media queries para pantallas medianas */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 50px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    margin-top: 20px;
    text-align: center;
  }

  .hero-image img {
    max-width: 80%;
  }
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul li {
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .call-center-btn {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-image {
    margin-top: 0;
    text-align: center;
  }

  .hero-image img {
    max-width: 100%;
    margin: 0 auto;
  }
}
