/* Bloques comunes: preguntas frecuentes, blog y video (/css/common.css de WordPress) (spec 002). GENERADO por
   dev/specs/002-sitio-estatico/tools/build_landing_css.py. No editar a mano. */

/* --- Encabezados semánticos con el aspecto de los <div> originales ---
   Algunos <div> pasaron a h1/h2 (accesibilidad y SEO). Este reset va antes que las reglas de
   cada bloque, con especificidad de clase, para que estas sigan mandando. */
.mycontent :where(h1, h2, h3),
.blog :where(h1, h2, h3) {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
}

h1.page-title > span {
  display: block;
}

/* --- /css/common.css --- */
.seccion-preguntas {
  height: auto;
  position: relative;
  z-index: 3;
  @media only screen and (max-width: 560px) {
    margin-top: 250px;
  }
}
.seccion-preguntas > .titulo {
  font-family: Anek Tamil;
  font-size: 20px;
  font-weight: 700;
  line-height: 28.16px;
  text-align: center;
  color: white;
}
.accordion {
  width: 629px;
  max-width: 94vw;
  margin: 40px auto 0px auto;
}

.accordion-item {
  background-color: #faf8ee;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.accordion-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #3b3b3b;
  background-color: #fcf8e3;
}

.accordion-header.active {
  background-color: #163c37;
  color: #d4ed4b;
}

.accordion-content {
  display: none;
  padding: 15px;
  background-color: #1d554d;
  color: #ffffff;
}

.accordion-content.active {
  display: block;
}

.arrow {
  font-size: 18px;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}
.blog {
  background: #fff;
  height: 590px;
  position: relative;
  margin-top: -1px;
  color: #000;
}
.blog > .title {
  text-align: center;
  font-family: Anek Tamil;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.53px;
}
.blog > .subtitle {
  font-family: Anek Tamil;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
}
.blog > .explora {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.blog-carousel {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 18px;
  overflow: overlay;
  width: 98vw;
  max-width: 1290px;
}
.blog-item {
  width: 309px;
  min-width: 309px;
  height: 442px;
  max-height: 442px;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

.blog-item img {
  width: 100%;
  max-width: 309px;
  height: auto; /* Mantiene la proporción de la imagen */
  border-radius: 10px;
}
.blog-item p {
  background-color: #000;
  color: #fff;
  padding: 10px;
  height: 165px;
  max-height: 165px;
  position: absolute;
  bottom: -25px;
  font-family: Anek Tamil;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 29px;
  letter-spacing: -0.04em;
}
.blog-item a {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
#videoOverlay, #videoOverlayZimona {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9000;
}
#videoContainer, #videoContainerZimona {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  max-width: 1100px;
  max-height: 100vh;
  aspect-ratio: 16 / 9;
}
#videoContainer2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, calc(100vh * 0.5625)); /* 9/16 = 0.5625 */
  height: min(95vh, calc(95vw * 1.7778)); /* 16/9 = 1.7778 */
  max-width: 1080px;
  max-height: 1920px;
  aspect-ratio: 16 / 9;
}
#videoPlayer, #videoPlayerZimona {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#closeVideoButton, #closeVideoButtonZimona {
  position: absolute;
  top: 0;
  right: 0;
  background-color: transparent;
  border: none;
  height: 16px;
  font-size: 50px;
  line-height: 1;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transform: translate(100%, -100%);
  transition: transform 0.3s ease;
}

#videoPlayer::-webkit-media-controls-enclosure, #videoPlayerZimona::-webkit-media-controls-enclosure {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
@media (max-width: 1200px) {
  #closeVideoButton, #closeVideoButtonZimona {
    transform: none;
  }
}
#loadingSpinner, #loadingSpinnerZimona {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --- Adaptaciones zeed_retail (sin estilos ni manejadores en línea) --- */

/* Divi no subraya los enlaces de los bloques. */
.mycontent a,
.blog a {
  text-decoration: none;
}

/* El texto del botón "Ver video" era un <p> (no válido dentro de <button>): ahora <span>. */
.seccion-que-encontraras button span {
  font-weight: 700;
  font-size: 20px;
  line-height: 29px;
  color: #000;
  margin: 0;
  display: inline-block;
  width: 91px;
  padding: 8px 0;
}

/* El video se mostraba con style.display desde JS: ahora con clases (landing.js). */
#videoOverlay.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
}

#loadingSpinner.is-visible {
  display: block;
}

/* La cabecera del acordeón pasa de <div onclick> a <button>: mismo aspecto. */
button.accordion-header {
  width: 100%;
  border: 0;
  font-family: inherit;
  text-align: left;
}

button.accordion-header:focus-visible {
  outline-offset: -3px;
}

/* El precio se rellena desde WooCommerce (precios-wp.js); oculto mientras tanto. */
[data-price][hidden] {
  display: none;
}

/* Antes style="height: 287px" en la 4.ª imagen del carrusel del blog. */
.blog-item__img-tall {
  height: 287px;
}
