/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables de tema */
:root {
  --color-primary: #1a3d7c;
  --color-secondary: #e3f2fd;
  --color-text: #0d1b2a;
  --color-light: #fff;
  --fs-heading: 2rem;
  --fs-subheading: 1.5rem;
  --header-height: 0px;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding-block: 2rem;
}

img {
  mask-image: linear-gradient(to bottom, black 90%, transparent),
              linear-gradient(to right, black 90%, transparent),
              linear-gradient(to left, black 90%, transparent);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent),
                      linear-gradient(to right, black 90%, transparent),
                      linear-gradient(to left, black 90%, transparent);
  -webkit-mask-composite: intersect;
}

/* Header */
.header {
  background-color: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.logo {
  font-size: var(--fs-heading);
  color: var(--color-primary);
}
.nav__list {
  list-style: none;
  display: flex;
  row-gap: 0.5rem;
  column-gap: 2rem;
}
.nav__list a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav__list a:hover {
  color: var(--color-primary);
}

/* Secciones */

.inicio {
  background-color: var(--color-secondary);
  text-align: center;
}
.inicio h2 {
  font-size: calc(var(--fs-heading) * 1.2);
  margin-bottom: 1rem;
}


/* ─── HERO CAROUSEL ─── */
.hero-carousel {
  position: relative;
  width: 60%;
  margin: 0 auto;
  overflow: visible;    /* keep arrows from being clipped */
}

/* NEW parent that actually masks the overflow */
.carousel-window {
  overflow: hidden;     /* hides anything sliding outside */
  width: 100%;
}

.carousel {
  display: flex;        /* lay out slides side by side */
  transition: transform 0.5s ease-in-out;
  /* no overflow or width here! */
}

.carousel-img {
  flex: 0 0 100%;       /* each image is exactly one “page” wide */
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* controls just as before */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}
.carousel-controls button {
  pointer-events: all;
  position: absolute;
  background: rgba(26,61,124,0.7);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background 0.3s;
  z-index: 2;
}
#prev { left: -40px; }
#next { right: -40px; }
.carousel-controls button:hover {
  background: rgba(26,61,124,0.9);
}


.mysterious-date {
  font-style: italic;
  margin-top: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  border: 1px solid;
  padding: 1rem;
}

.sintomas ul {
  list-style: disc inside;
  max-width: 600px;
  margin: 1rem;
}
.sintomas li {
  margin-bottom: 1rem;
}
.sintomas__container {
  display: flex;
  align-items: center;
  gap: 2rem; /* separación entre imagen y texto */
}
.sintomas__image {
  flex: 0 0 20%; /* ocupa un 20% del ancho */
  max-width: 150px; /* como máximo 150px */
}
.sintomas__image img {
  display: block;
  width: 100%;
  height: auto;
}
.sintomas__content {
  flex: 1; /* ocupa el resto del espacio */
}

.diagnostico__container {
  display: flex;
  align-items: center; /* centra verticalmente ambos bloques */
  gap: 1rem; /* separación entre contenido e imagen */
}
.diagnostico__image {
  flex: 0 0 20%; /* ocupa un 20% del ancho del contenedor */
  max-width: 150px; /* como máximo 150px */
}
.diagnostico__image img {
  display: block;
  width: 100%;
}

#btn-evaluacion {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}
#btn-evaluacion:hover {
  background-color: #122A5D;
}

.testimonios blockquote {
  background-color: var(--color-secondary);
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  margin: 2rem 0;
  font-style: italic;
}
.testimonios cite {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-weight: bold;
}

/* Modal de diagnóstico */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal.hidden {
  display: none;
}
.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: relative;
  background-color: var(--color-light);
  padding: 4rem;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  z-index: 101;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.modal-content h2 {
  margin-bottom: 2rem;
  font-size: var(--fs-subheading);
  color: var(--color-primary);
}
.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.modal-btn {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.modal-btn:hover {
  background-color: #122A5D;
}
.modal-close {
  margin-top: 2rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--color-light);
  text-align: center;
  padding-block: rem;
  border-top: 1px solid #e0e0e0;
}
.footer p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Responsive general */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .container {
    padding-inline: 1rem;
  }
}

/* Contenedor héroe (inicio) */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
/* Texto del héroe */
.hero-text h2 {
  font-size: calc(var(--fs-heading) * 1.2);
  margin-bottom: 1rem;
}
.hero-text p {
  margin-bottom: 1rem;
}
.slogan {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 1rem;
}
/* Imagen del héroe */
.hero-img {
  width: 80%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
/* Responsive: héroe apilado en móvil */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .slogan {
    margin-top: 1rem;
  }
}

/* Responsive específico para móvil (<=425px) */
@media (max-width: 425px) {
  /* Sintomas */
  .sintomas__container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;      /* centra horizontalmente */
  }
  .sintomas__image,
  .sintomas__content {
    flex: none;
    width: 100%;
  }
  .sintomas,
  .sintomas__content,
  .sintomas h2 {
    text-align: center;
    width: 100%;
  }

  /* Diagnóstico */
  .diagnostico__container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;      /* centra horizontalmente */
  }
  .diagnostico__image,
  .diagnostico__content {
    flex: none;
    width: 100%;
  }
  .diagnostico,
  .diagnostico__content,
  .diagnostico h2 {
    text-align: center;
    width: 100%;
  }

  /* Tratamiento */
  .tratamiento__container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;      /* centra horizontalmente */
  }
  .tratamiento__image,
  .tratamiento__content {
    flex: none;
    width: 100%;
  }
  .tratamiento,
  .tratamiento__content,
  .tratamiento h2 {
    text-align: center;
    width: 100%;
  }

  /* Testimonios */
  .testimonios__container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;      /* centra horizontalmente */
  }
  .testimonios h2{
    text-align: center;
    width: 100%;
  }

  /* Otros títulos y textos generales */
  
  .footer p {
    text-align: center;
  }
}
