/*
Theme Name: Elsa Tapia
Template: twentytwentyfive
Version: 1.0
Description: Tema hijo de Twenty Twenty-Five con los estilos personalizados de Elsa Tapia.
Author: Elsa Tapia
*/

.wp-block-quote {
  box-shadow: 12px 12px 0px 0px var(--wp--preset--color--azul-secundario);
  border-radius: 6px;
  padding: 40px;
}
.wp-block-quote p {
  color: var(--wp--preset--color--azul-principal);
}
.wp-block-quote cite {
  color: var(--wp--preset--color--azul-secundario);
}
:root :where(.wp-block-button.is-style-outline .wp-block-button__link) {
    background: transparent none;
    border-color: var(--wp--preset--color--azul-principal);
    border-width: 2px;
    border-style: solid;
    color: var(--wp--preset--color--azul-principal);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover{
    background:  var(--wp--preset--color--azul-principal);
    border-color: var(--wp--preset--color--azul-principal);
    border-width: 2px;
    border-style: solid;
    color: #FFFFFF;
}
.wp-block-button .wp-block-button__link:hover {
    background-color: #0000CC;
    border-width: 2px;
    border-style: solid;
    color:#0000CC,
}
.wp-block-button .wp-block-button__link {
    border-width: 2px;
    border-style: solid;
    border-color: var(--wp--preset--color--azul-principal);
    padding-top: 12px;
    padding-bottom: 12px;
}
ul li::marker {
  color: var(--wp--preset--color--azul-principal);
}
/* Banner Top*/ 
.banner-scroll {
  width: 100%;
  overflow: hidden;
  width: 100vw; 
  background-color: var(--wp--preset--color--azul-principal);
  padding: 10px 0;
  position: relative;
}

.scroll-wrapper {
  display: flex;
  animation: scrollBanner 60s linear infinite;
}

.scroll-content {
  display: flex;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  margin-right: 12px;
}

/* Animación continua */
@keyframes scrollBanner {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pausa al pasar el ratón */
.banner-scroll:hover .scroll-wrapper {
  animation-play-state: paused;
}
.shadow:hover {
  box-shadow: 20px 20px 0px 0px var(--wp--preset--color--azul-secundario);
  transition: box-shadow 0.3s ease;
}
.titulo-azul-secundario {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--azul-secundario);
}
@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gira-scroll {
  animation: girar linear;
  animation-timeline: view();
  animation-range: entry 0% exit 100%;
}
.margen-sello {
  margin-top: -320px;
  z-index: 2;
  position: relative;
}
/* ========= ESTILO BASE ========= */
.wp-block-navigation .wp-block-navigation-item a {
  display: inline-block;
  padding: 5px 10px;
  background-color: transparent;
  color: var(--wp--preset--color--gris-texto);
  border-radius: 50px;
  border: none !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ========= HOVER (menú principal y submenú) ========= */
.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-submenu-container .wp-block-navigation-item a:hover {
  background-color: var(--wp--preset--color--azul-principal) !important;
  color: var(--wp--preset--color--blanco) !important;
  padding: 5px 10px; /* Asegura el padding en hover */
}

/* ========= ACTIVO ========= */
.wp-block-navigation .wp-block-navigation-item a[aria-current="page"],
.wp-block-navigation .wp-block-navigation-item a[aria-current="true"] {
  background-color: var(--wp--preset--color--azul-principal);
  color: var(--wp--preset--color--blanco);
  border: none !important;
  background-color: var(--wp--preset--color--azul-principal) !important;
}

/* ========= LIMPIEZA DE FONDOS Y BORDES ========= */
.wp-block-navigation__submenu-container,
.wp-block-navigation-item.has-child .wp-block-navigation-item__content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========= AJUSTE PARA MÓVIL ========= */
@media (max-width: 782px) {
  .wp-block-navigation .wp-block-navigation-item a {
    display: block;
    padding: 5px 16px;
    border-radius: 50px; /* Más suaves para móvil */
  }

  .wp-block-navigation .wp-block-navigation-item a:hover {
    padding: 5px 16px !important; /* Evita que se achique en hover */
  }

  /* Mantener activo en móvil (enlaces normales) */
  .wp-block-navigation .wp-block-navigation-item a[aria-current="page"],
  .wp-block-navigation .wp-block-navigation-item a[aria-current="true"] {
    background-color: var(--wp--preset--color--azul-principal);
    color: var(--wp--preset--color--blanco);
    padding: 5px 16px !important; /* Igual padding que normal en móvil */
    border: none !important;
  }

  /* Mantener activo en móvil (submenu) */
  .wp-block-navigation .wp-block-navigation-submenu-container .wp-block-navigation-item a[aria-current="page"],
  .wp-block-navigation .wp-block-navigation-submenu-container .wp-block-navigation-item a[aria-current="true"] {
    background-color: var(--wp--preset--color--azul-principal) !important;
    color: var(--wp--preset--color--blanco)!important;
    padding: 5px 16px !important;
    border: none !important;
  }
}

.wp-block-latest-posts__featured-image img {
  border-radius: 6px;
}
.wp-block-post-excerpt__excerpt {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--azul-secundario);
}

.columna-fija {
  position: sticky;
  top: 0;
  align-self: start;
}

.invertir-en-movil {
  display: flex;
  flex-direction: row;
}

/* Invierte el orden en pantallas pequeñas */
@media (max-width: 768px) {
  .invertir-en-movil {
    flex-direction: column-reverse;
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* para que esté por encima de todo */
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
/* Espaciado general cuando el header es fijo */
body {
  padding-top: 80px; /* ajusta según la altura real de tu header */
}

/* En móvil (pantallas pequeñas) aumentar el espaciado */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* o el valor que necesites para que no tape el H1 */
  }
}
#ez-toc-container {
    border-radius: 6px;
    margin-bottom: 1em;
    padding: 30px 30px 30px 40px;
}


/* === BLOQUE DE DETALLES / FAQ === */
.wp-block-details summary {
  padding: 12px 16px;
  background-color: transparent;
  color: var(--wp--preset--color--azul-principal);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0px solid var(--wp--preset--color--azul-principal);
  border-radius:6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Quita el marcador en Firefox */
  position: relative;
}

/* Eliminar marcador nativo */
.wp-block-details summary::-webkit-details-marker {
  display: none;
}
.wp-block-details summary::marker {
  display: none;
}

/* Crear flecha personalizada */
.wp-block-details summary::after {
  content: "▾"; /* flecha hacia abajo */
  font-size: 1em;
  color: var(--wp--preset--color--azul-principal);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover del bloque */
.wp-block-details summary:hover {
  background-color: var(--wp--preset--color--azul-principal);
  color: var(--wp--preset--color--blanco);
  border-color: var(--wp--preset--color--azul-principal);
}

.wp-block-details summary:hover::after {
  color: var(--wp--preset--color--blanco);
}

/* Estado abierto (rota la flecha y cambia color) */
.wp-block-details[open] summary {
  background-color: var(--wp--preset--color--azul-principal);
  color: var(--wp--preset--color--blanco);
}

.wp-block-details[open] summary::after {
  transform: rotate(180deg);
  color: var(--wp--preset--color--blanco);
}
