/* 1. Resetear márgenes globales y evitar scroll horizontal */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden; /* Oculta scroll horizontal */
}

/* Asegurar que las imágenes no rompan el diseño */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* *Quitamos* hyphens para que no corte palabras con guiones */
p, h1, a, button, li {
  word-wrap: break-word;
  /* -webkit-hyphens: auto; 
  -moz-hyphens: auto; 
  hyphens: auto; */
  /* Eliminamos hyphens para que no se partan las palabras. */
}

/* 2. Estilos Globales */
body {
  background-color: #333333; /* Fondo gris oscuro */
  font-family: 'Malgun Gothic', sans-serif;
  font-weight: bold;
  color: #000;
}

/* Ajustamos la .container con más padding lateral en general */
.container {
  max-width: 800px; 
  margin: 0 auto;
  background-color: #fff;
  /* Padding vertical generoso, pero agregamos un 20px a cada lado */
  padding: 80px 20px; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Título */
h1 {
  background-color: #fefe02;
  display: block;
  text-align: center;
  padding: 5px 10px;
  font-size: 25px;
  font-weight: bold;
  margin: 0 auto;
}

p {
  line-height: 1.6;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.header-left {
  text-align: left;
  margin-top: 10px;
}

.underline-name {
  font-weight: bold;
  font-size: 1em;
  text-decoration: underline;
  text-decoration-color: #fefe02;
  text-decoration-thickness: 0.50em;
  text-underline-offset: 0.10em;
  color: #000;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.6;
}

.button-container {
  text-align: center;
  margin: 20px 0;
}

/* 3. Testimonios */
.testimonios-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.testimonio {
  background-color: #ffff00;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.testimonio img {
  width: 100%;
  border-radius: 8px;
}

/* 4. Header Container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 20px; 
}

.header-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.header-text {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
}

/* 5. Popups */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  z-index: 1000;
  text-align: center;
  border-radius: 10px;
}

.popup img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.popup:target {
  display: block;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.close:hover {
  color: #ffcc00;
}

/* 6. Responsive */

/* Tablet */
@media (max-width: 992px) {
  .container {
    padding: 40px 20px; /* Ajustamos un poco pero mantenemos 20px lateral */
    max-width: 100%;
  }
  
  .header-text {
    font-size: 22px;
  }
}

/* Dispositivos móviles medianos */
@media (max-width: 768px) {
  .container {
    padding: 25px 20px; 
    max-width: 100%;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .header-image {
    margin-bottom: 20px;
    width: 150px;
    height: 150px;
  }

  .header-text {
    font-size: 20px;
    line-height: 1.3;
  }

  h1 {
    font-size: 20px;
  }

  p, ul li {
    font-size: 1em;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .container {
    padding: 20px; /* Dejamos 20px en cada lado */
    max-width: 100%;
  }

  .testimonios-container {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 15px;
  }

  .testimonio a {
    pointer-events: none;
    cursor: default;
  }

  .header-text {
    font-size: 18px;
  }

  .header-image {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 18px;
    padding: 4px 8px;
  }

  p, ul li {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  ul {
    margin-left: 15px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 15px; 
  }

  .header-text {
    font-size: 16px;
  }

  .header-image {
    width: 100px;
    height: 100px;
  }

  p, ul li {
    font-size: 0.9em;
  }
}

/* 7. Botones básicos */
.btn {
  background-color: #fefe02;
  color: black;
  padding: 15px 25px;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease;
  width: auto;
  max-width: 350px;
}

.btn:hover {
  background-color: #ffc107;
}

/* Ajustes de botón para móvil */
@media (max-width: 576px) {
  .button-container .btn {
    width: 100%;
    max-width: none;
    font-size: 0.9em;
    padding: 12px 15px;
  }
}