/* Estilos propios de la versión Astro: lo que antes hacía el JavaScript de The7/Thrive. */

/* Sin la pantalla de carga de The7 */
#load { display: none !important; }

/* Imágenes: nunca más anchas que su caja */
.entry-content img, .tve_image { max-width: 100%; height: auto; }

/* Cabecera móvil (The7 la creaba por JavaScript y en la web actual no aparece) */
.ac-movil, .ac-menu { display: none; }
@media (max-width: 990px) {
  .masthead, #phantom { display: none !important; }
  .ac-movil {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 500;
    padding: 6px 16px; background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07);
  }
  .ac-movil__logo { margin-right: auto; line-height: 0; }
  .ac-movil__logo img { height: 52px; width: auto; }
  .ac-movil__buscar { color: #333; font-size: 18px; padding: 8px; text-decoration: none; }
  .ac-movil__boton {
    width: 40px; height: 40px; border: 0; border-radius: 4px; background: #99d240;
    display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; cursor: pointer;
  }
  .ac-movil__boton span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .ac-menu:not([hidden]) {
    display: block; position: fixed; top: 64px; left: 0; right: 0; z-index: 499;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 8px 15px rgba(0, 0, 0, .08);
  }
  .ac-menu ul { list-style: none; margin: 0; padding: 4px 0; }
  .ac-menu a {
    display: block; padding: 12px 20px; color: #333; text-decoration: none;
    font: 700 15px/1.3 Arial, Helvetica, sans-serif; border-bottom: 1px solid #f2f2f2;
  }
  .ac-menu a.act, .ac-menu a:hover { color: #99d240; }
}

/* Buscador emergente de la cabecera */
.mini-search.act .popup-search-wrap { display: block !important; opacity: 1 !important; visibility: visible !important; }

/* Vídeos de YouTube con carga al pulsar */
.yt-lite {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
}
.yt-lite__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(33, 33, 33, .85); border-radius: 12px; transition: background .2s;
}
.yt-lite__play::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt-lite:hover .yt-lite__play { background: #f00; }
.tve_responsive_video_container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Comentarios: avatar con la inicial (sin pedir nada a Gravatar) */
.ac-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #eef6e0; color: #6f9a2a; font: 700 24px/1 Cinzel, Georgia, serif;
}
.ac-oculto { position: absolute; left: -9999px; }
.ac-form-estado { margin-top: 10px; font-weight: 700; color: #6f9a2a; }
#commentform .dt-btn { border: 0; cursor: pointer; }

/* Volver arriba */
.scroll-top.on { opacity: 1; visibility: visible; }

/* Botón buscar de la barra lateral */
.widget_search .submit { background: none; border: 0; cursor: pointer; }
.widget_search .submit svg { width: 16px; height: 16px; fill: #999; }

/* Aviso de cookies (mismo aspecto que el de Complianz en la web actual) */
.ac-cookies {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 380px; max-width: calc(100vw - 32px); box-sizing: border-box;
  background: #fff; border-radius: 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .2); padding: 16px 20px;
  font: 13px/1.5 Roboto, Arial, sans-serif; color: #222;
}
.ac-cookies[hidden] { display: none; }
.ac-cookies__cab { display: flex; justify-content: space-between; align-items: center; }
.ac-cookies__titulo { margin: 0; font-weight: 700; font-size: 15px; }
.ac-cookies__cerrar { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #555; }
.ac-cookies__texto { margin: 10px 0 12px; }
.ac-cookies__cat { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.ac-cookies__botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ac-cookies__btn {
  padding: 9px 6px; border-radius: 5px; border: 1px solid #99d240; background: #f9f9f9; color: #222;
  font: 600 13px/1.2 Roboto, Arial, sans-serif; cursor: pointer;
}
.ac-cookies__btn--si { background: #99d240; color: #fff; }
.ac-cookies__btn--link { border-color: #ddd; }
.ac-cookies__btn[hidden] { display: none; }
.ac-cookies__enlaces { margin: 10px 0 0; text-align: center; font-size: 12px; }
.ac-cookies__enlaces a { color: #333; text-decoration: underline; }
@media (max-width: 480px) {
  .ac-cookies { right: 16px; bottom: 16px; }
  .ac-cookies__botones { grid-template-columns: 1fr 1fr; }
  .ac-cookies__btn--link { grid-column: 1 / -1; }
}

/* Listas numeradas de Thrive: cuadro verde perfecto con el número centrado y texto alineado */
.thrv-numbered_list .tcb-numbered-list li.thrv-styled-list-item {
  display: flex !important; align-items: center; gap: 14px; margin: 0 0 12px !important; min-height: 38px;
}
.thrv-numbered_list .tcb-numbered-list li div.tcb-numbered-list-number {
  box-sizing: border-box !important; flex: 0 0 38px; width: 38px !important; min-width: 38px !important; height: 38px;
  padding: 0 !important; margin: 0 !important; border-radius: 6px;
  display: flex !important; align-items: center; justify-content: center;
}
.thrv-numbered_list .tcb-numbered-list-number .tcb-numbered-list-index {
  line-height: 1 !important; font-size: 17px !important; width: auto !important;
}
.thrv-numbered_list .tcb-numbered-list-text {
  flex: 1; width: auto !important; padding: 0 !important; line-height: 1.6 !important;
}

/* Formulario para tiendas de acuarios (portada) */
.ac-tiendas {
  background: #f6faef; border: 1px solid #dcebc4; border-radius: 10px; padding: 26px 26px 22px; margin: 10px 0;
}
.ac-tiendas__titulo {
  font-family: Cinzel, Georgia, serif !important; font-size: 24px; line-height: 1.3; text-align: center; margin: 0 0 8px; color: #333;
}
.ac-tiendas__texto { text-align: center; margin: 0 0 18px; color: #444; }
.ac-tiendas__form { display: grid; gap: 12px; }
.ac-tiendas__campo { display: grid; gap: 4px; font: 600 14px/1.3 Roboto, Arial, sans-serif; color: #333; }
.ac-tiendas__campo input, .ac-tiendas__campo textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd8c2; border-radius: 6px; background: #fff;
  padding: 10px 12px; font: 400 15px/1.4 Roboto, Arial, sans-serif; color: #222;
}
.ac-tiendas__campo input:focus, .ac-tiendas__campo textarea:focus { outline: 2px solid #99d240; border-color: #99d240; }
.ac-tiendas__legal { margin: 0; font-size: 12px; color: #666; }
.ac-tiendas__boton {
  justify-self: stretch; border: 0; border-radius: 6px; background: #86af49; color: #fff; cursor: pointer;
  padding: 13px 18px; font: 700 15px/1 Roboto, Arial, sans-serif; letter-spacing: .3px;
}
.ac-tiendas__boton:hover { background: #6f9a2a; }
.ac-tiendas .ac-form-estado { margin: 4px 0 0; text-align: center; }

/* ── Legibilidad (mejoras sobre la web de WordPress) ── */
/* Enlaces dentro del texto: verde oscuro legible (el verde claro original tenía contraste 1,8) */
#content p a:not(.tcb-button-link), #content li a:not(.tcb-button-link), #content td a:not(.tcb-button-link),
.comment-content a, .post-navigation .nav-previous, .post-navigation .nav-next, .post-navigation a { color: #4e7a17; }
#content p a:not(.tcb-button-link):hover, #content li a:not(.tcb-button-link):hover { color: #3f6812; }
.post-navigation .meta-nav { color: #666; }
/* Listas: interlineado cómodo (algunas venían con 16px de alto de línea) */
#content .entry-content li, #content .tve_shortcode_editor li { line-height: 1.6; }
/* Pies de foto legibles */
#content .wp-caption-text, #content .tve_image_caption .wp-caption-text, #content figcaption { font-size: 14px; line-height: 1.45; }

/* Desplegables abiertos: fondo gris muy claro siempre (también al pasar el ratón), para que se lean texto y enlaces */
.thrv_toggle_shortcode .tve_faq.tve_oFaq,
.thrv_toggle_shortcode .tve_faq.tve_oFaq:hover,
.thrv_toggle_shortcode .tve_faq:has(.tve_toggle_open),
.thrv_toggle_shortcode .tve_faq:has(.tve_toggle_open):hover { background: #f8f8f8 !important; background-color: #f8f8f8 !important; }
#page .thrv_toggle_shortcode .tve_faq.tve_oFaq:hover > .tve_faqI > .tve_faqB h4,
#page .thrv_toggle_shortcode .tve_faq.tve_oFaq:hover > .tve_faqI > .tve_faqB h4 *,
#page .thrv_toggle_shortcode .tve_faq:has(.tve_toggle_open):hover > .tve_faqI > .tve_faqB h4,
#page .thrv_toggle_shortcode .tve_faq:has(.tve_toggle_open):hover > .tve_faqI > .tve_faqB h4 * { color: #333 !important; }

/* Filas "número + título" (filtro interno, filtro externo, temas generales) */
.ac-paso { display: flex; align-items: center; gap: 16px; margin: 28px 0 14px; }
.ac-paso__num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 6px; background: #5f8a1f; color: #fff;
  display: flex; align-items: center; justify-content: center; font: 700 18px/1 Roboto, Arial, sans-serif;
}
.ac-paso__texto { flex: 1; min-width: 0; }
.ac-paso__texto .thrv_text_element, .ac-paso__texto p { margin: 0 !important; padding: 0 !important; }

/* Pie de página en un solo bloque de ancho completo, más bajo que el de The7 */
.ac-pie { padding: 22px 0 !important; }
.ac-pie .ac-pie__texto { margin: 0; text-align: center; font-size: 13px; line-height: 1.7; color: #b5b5b5; }
.ac-pie .ac-pie__texto a { color: #dcdcdc; }
.ac-pie .ac-pie__texto a:hover { color: #99d240; }
