/*
Theme Name: LogikApol
Description: Theme personalizado desarrollado para Aspol.es con diseño moderno y responsive.
Author: Logi-k Soluciones digitales
Author URI: https://logi-k.es
Version: 1.0.0
License: © Logi-k Soluciones digitales. Todos los derechos reservados.
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: logik-aspol
*/

/* ==========================================================================
   RESET Y CONFIGURACIÓN BASE
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #f5f4f2;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    font-size: 1.8rem;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* ==========================================================================
   LAYOUT Y CONTENEDORES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background-color: transparent;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Header en páginas internas (no portada) - siempre blanco */
body:not(.home) .site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* En páginas internas: logo de color visible, logo blanco oculto */
body:not(.home) .custom-logo-link.logo-primary {
    display: none;
}

body:not(.home) .custom-logo-link.logo-scrolled {
    display: block;
}

/* En páginas internas: iconos sociales en color primario */
body:not(.home) .header-social .social-icon {
    color: #2c3e50;
}

/* En páginas internas: hamburguesa en color oscuro */
body:not(.home) .menu-toggle .menu-icon,
body:not(.home) .menu-toggle .menu-icon::before,
body:not(.home) .menu-toggle .menu-icon::after {
    background-color: #333;
    box-shadow: none;
}

/* Contenido de páginas internas con margin-top */
body:not(.home) .site-main {
    padding-top: 120px;
}

.site-header .container {
    max-width: 1400px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    position: relative;
}

.site-branding {
    z-index: 1001;
    flex: 0 0 auto;
}

/* Iconos de redes sociales en el centro */
.header-social {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.header-social .social-icon:hover {
    opacity: 1;
}

.site-header.scrolled .header-social .social-icon {
    color: #2c3e50;
}

/* Logo personalizado */
.custom-logo-link {
    display: block;
}

/* Logo principal (transparente) visible por defecto */
.custom-logo-link.logo-primary {
    display: block;
}

/* Logo scroll oculto por defecto */
.custom-logo-link.logo-scrolled {
    display: none;
}

/* Cuando header tiene scroll: cambiar logos */
.site-header.scrolled .custom-logo-link.logo-primary {
    display: none;
}

.site-header.scrolled .custom-logo-link.logo-scrolled {
    display: block;
}

.custom-logo {
    width: 140px;
    height: auto;
    display: block;
}

.site-logo,
.site-title a {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo,
.site-header.scrolled .site-title a {
    color: #2c3e50;
    text-shadow: none;
}

.site-description {
    display: none;
}

.main-navigation {
    position: fixed;
    top: 0;
    right: -25%;
    width: 25%;
    height: 100vh;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.8rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.main-navigation.is-open {
    transform: translateX(-100%);
}

/* Logo del menú móvil (abajo del menú) */
.mobile-menu-logo {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
}

.mobile-menu-logo img {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mobile-menu-logo a:hover img {
    opacity: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none !important;
    list-style-type: none !important;
    gap: 0;
    text-align: left;
    width: 100%;
    padding-top: 10rem;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

/* Eliminar TODOS los puntos de lista */
.main-navigation *,
.nav-menu *,
.nav-menu,
.nav-menu ul,
.nav-menu li,
.nav-menu .sub-menu,
.nav-menu .sub-menu li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

.nav-menu li,
.nav-menu .sub-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-menu li::before,
.nav-menu li::after,
.nav-menu li::marker,
.nav-menu .sub-menu li::before,
.nav-menu .sub-menu li::after,
.nav-menu .sub-menu li::marker,
.main-navigation li::before,
.main-navigation li::after,
.main-navigation li::marker,
.main-navigation ul li::before,
.main-navigation ul li::after {
    content: none !important;
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
}

.nav-menu>li {
    opacity: 1;
    transform: none;
}

.nav-menu a {
    font-weight: 400;
    color: #ecf0f1;
    transition: color 0.3s ease;
    font-size: 1.8rem;
    text-decoration: none;
    padding: 0.6rem 2rem 0.6rem 0;
    border-radius: 0;
    display: block;
    position: relative;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0.05em;
}

.nav-menu a:hover {
    color: #95a5a6;
}

/* ==========================================================================
   MENU ACORDEON
   ========================================================================== */

/* Elementos padre con submenús */
.nav-menu .menu-item-has-children>a {
    position: relative;
    cursor: pointer;
}

.nav-menu .menu-item-has-children>a::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #ecf0f1;
}

.nav-menu .menu-item-has-children.is-open>a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenús */
.nav-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: transparent;
    margin-left: 0;
}

.nav-menu .menu-item-has-children.is-open .sub-menu {
    max-height: 500px;
}

.nav-menu .sub-menu li {
    opacity: 1;
    transform: none;
    list-style: none;
    list-style-type: none;
}

.nav-menu .menu-item-has-children.is-open .sub-menu li {
    opacity: 1;
    transform: none;
}

.nav-menu .sub-menu a {
    font-size: 1.5rem;
    padding: 0.4rem 2rem 0.4rem 1rem;
    color: #ecf0f1;
    position: relative;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.nav-menu .sub-menu a:hover {
    color: #95a5a6;
}

.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    flex-direction: column;
    justify-content: space-around;
    width: 4rem;
    height: 4rem;
    z-index: 1002;
    position: relative;
}

.menu-toggle .menu-icon,
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    display: block;
    width: 2.5rem;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .menu-toggle .menu-icon,
.site-header.scrolled .menu-toggle .menu-icon::before,
.site-header.scrolled .menu-toggle .menu-icon::after {
    background-color: #333;
    box-shadow: none;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    position: relative;
}

.menu-toggle .menu-icon::before {
    top: -8px;
}

.menu-toggle .menu-icon::after {
    top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: #fff;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 5px;
}

/* Ocultar botón hamburguesa cuando el menú está abierto */
body.menu-open .menu-toggle {
    display: none;
}

/* Overlay del menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Botón de cerrar dentro del menú */
.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1;
}

.menu-close::before {
    content: '×';
}

.menu-close:hover {
    color: #95a5a6;
}

/* Ajustar el contenido principal para el header fijo */
.site-main {
    padding-top: 0;
}

body {
    padding-top: 0;
}

/* ==========================================================================
   FRONT PAGE - HERO VIDEO
   ========================================================================== */

.front-page-content {
    padding-top: 0;
}

.hero-video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Overlay opcional sobre el video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-video-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-video-overlay .hero-video-content h1.hero-title,
.hero-video-content .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.05em;
    color: #fff;
}

.hero-video-overlay .hero-video-content p.hero-subtitle,
.hero-video-content .hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.03em;
    color: #fff;
}

/* Placeholder cuando no hay video */
.hero-no-video {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.hero-placeholder {
    text-align: center;
    color: #ecf0f1;
    padding: 2rem;
}

.hero-placeholder p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Contenido principal de la portada */
.front-page-main-content {
    padding: 4rem 0;
}

/* Ocultar si está vacío */
.front-page-main-content:empty,
.front-page-main-content:has(.container:empty) {
    display: none;
    padding: 0;
}

/* Quitar espacio cuando hay prefooter */
.front-page-main-content+.prefooter-section {
    margin-top: 0;
}

/* Última sección de slides antes del prefooter */
.frontpage-slide-section:last-of-type {
    margin-bottom: 0;
}

/* ==========================================================================
   PRE-FOOTER
   ========================================================================== */

.prefooter-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: #000;
    margin: 0;
    padding: 0;
}

.prefooter-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prefooter-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Contenido overlay del prefooter (imagen, título, subtítulo, botón) */
.prefooter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    padding: 2rem;
}

.prefooter-overlay-image {
    max-width: 80%;
    max-height: 40%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
    margin-bottom: 1.5rem;
}

.prefooter-title {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.prefooter-subtitle {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    max-width: 600px;
}

.prefooter-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prefooter-button:hover {
    background-color: #2980b9;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .prefooter-section {
        height: 350px;
    }

    .prefooter-title {
        font-size: 2.8rem;
    }

    .prefooter-subtitle {
        font-size: 1.1rem;
    }

    .prefooter-button {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   SECCIONES DE SLIDES DE PORTADA
   ========================================================================== */

/* Cada sección de slide */
.frontpage-slide-section {
    width: 100%;
}

/* Título de sección (barra azul) */
.slide-section-header {
    background-color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
}

.slide-section-title {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Contenedor del slider de sección */
.section-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Contenedor de slides */
.section-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cada slide individual */
.section-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.section-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Imagen de fondo del slide */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video de fondo del slide */
.slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay con contenido */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.slide-content {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.slide-title {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.slide-title-image {
    max-width: 80%;
    max-height: 40vh;
    width: auto;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 10px rgba(0, 0, 0, 0.5));
}

.slide-subtitle {
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.slide-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navegación del slider */
.section-slider-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-prev .dashicons,
.slider-next .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Indicadores (dots) */
.slider-dots {
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive secciones de slides */
@media (max-width: 1024px) {
    .slide-section-header {
        padding: 3rem 0;
    }

    .slide-section-title {
        font-size: 3rem;
    }

    .section-slider {
        height: 70vh !important;
    }
}

@media (max-width: 768px) {
    .slide-section-header {
        padding: 2.5rem 0;
    }

    .slide-section-title {
        font-size: 2.5rem;
    }

    .slide-wrapper {
        height: 60vh !important;
        min-height: 400px;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-button {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .slide-section-header {
        padding: 1.5rem 0;
    }

    .slide-section-title {
        font-size: 1.6rem;
    }

    .slide-wrapper {
        height: 50vh !important;
        min-height: 350px;
    }

    .slide-content {
        padding: 1rem;
    }

    .slide-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
}

/* Responsive hero video */
@media (max-width: 768px) {

    .hero-video-overlay .hero-video-content h1.hero-title,
    .hero-video-content .hero-title {
        font-size: 2.5rem;
    }

    .hero-video-overlay .hero-video-content p.hero-subtitle,
    .hero-video-content .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .hero-video-overlay .hero-video-content h1.hero-title,
    .hero-video-content .hero-title {
        font-size: 2rem;
    }

    .hero-video-overlay .hero-video-content p.hero-subtitle,
    .hero-video-content .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-video-content {
        padding: 1rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

/* Margen del footer cuando no hay prefooter */
.front-page-main-content+.site-footer,
.site-content:not(.front-page-content)+.site-footer {
    margin-top: 6rem;
}

.footer-widgets {
    margin-bottom: 3rem;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column .widget {
    margin-bottom: 2rem;
}

.footer-column .widget-title {
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-column .widget ul {
    list-style: none;
}

.footer-column .widget li {
    margin-bottom: 0.5rem;
}

.footer-column .widget a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-column .widget a:hover {
    color: #3498db;
}

.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-navigation .footer-menu a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-navigation .footer-menu a:hover {
    color: #3498db;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-content a {
    color: #3498db;
}

.powered-by {
    font-size: 1.6rem;
    color: #95a5a6;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */

.content-area {
    padding: 4rem 0;
}

.page-title {
    margin-bottom: 3rem;
    text-align: center;
}

.posts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.entry-meta span {
    margin-right: 1.5rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.read-more {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
    color: #fff;
}

.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background-color: #ecf0f1;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background-color: #3498db;
    color: #fff;
}

.posts-navigation {
    margin-top: 4rem;
    text-align: center;
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.posts-navigation .nav-links a {
    flex: 1;
    max-width: 300px;
    padding: 1.5rem 2rem;
    background-color: #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.posts-navigation .nav-links a:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 6rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-results .page-title {
    color: #6c757d;
    margin-bottom: 2rem;
}

.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results .page-content p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 768px) {
    html {
        font-size: 56.25%;
        /* 1rem = 9px */
    }

    .container {
        padding: 0 1.5rem;
    }

    .main-navigation {
        width: 50%;
        right: -50%;
    }

    .nav-menu a {
        font-size: 1.7rem;
        padding: 1rem 2rem;
    }

    .post-item {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .posts-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-navigation .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
        /* 1rem = 8px */
    }

    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 1.5rem 0;
    }

    .main-navigation {
        width: 95%;
        right: -95%;
    }

    .nav-menu a {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
    }

    .content-area {
        padding: 2rem 0;
    }

    .site-logo,
    .site-title a {
        font-size: 2rem;
    }
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   PLANTILLA DE PRODUCTO
   ========================================================================== */

.producto-page {
    background-color: #f5f0eb;
    min-height: 100vh;
    padding-top: 100px;
}

/* Sección principal */
.producto-main {
    padding: 4rem 0;
}

.producto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Imagen del producto */
.producto-imagen-container {
    position: sticky;
    top: 120px;
}

.producto-imagen-principal {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.producto-imagen-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.producto-imagen-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #999;
}

/* Información del producto */
.producto-info {
    padding-right: 2rem;
}

.producto-titulo {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.producto-subtitulo {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Acordeón */
.producto-acordeon {
    border-top: 1px solid #ccc;
}

.acordeon-section {
    border-bottom: 1px solid #ccc;
}

.acordeon-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acordeon-header:hover {
    color: #1a252f;
}

.acordeon-icon {
    font-size: 1.8rem;
    font-weight: 300;
    width: 20px;
    text-align: center;
}

.acordeon-body {
    padding: 0 0 2rem 3rem;
}

/* Características */
.caracteristicas-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.caracteristica-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.caracteristica-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.caracteristica-nombre {
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
}

.caracteristica-valor {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.caracteristica-barra {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    max-width: 250px;
}

.caracteristica-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Medidas */
.medidas-content {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.8;
}

.medidas-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.medidas-content li {
    margin-bottom: 0.5rem;
}

/* Composición - Botón descargar */
.btn-descargar-ficha {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-descargar-ficha:hover {
    background: #1a252f;
    color: #fff;
}

.btn-descargar-ficha .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Galería de detalles */
.producto-galeria-section {
    padding: 4rem 0;
    background: #f5f0eb;
}

.producto-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.galeria-item-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.galeria-item-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item-link:hover img {
    transform: scale(1.05);
}

/* Productos relacionados */
.productos-relacionados-section {
    padding: 4rem 0;
    background: #f5f0eb;
}

.productos-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.producto-relacionado-card {
    display: block;
    text-decoration: none;
    background: #e8e3de;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-relacionado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.producto-relacionado-imagen {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ddd;
}

.producto-relacionado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.producto-relacionado-info {
    padding: 1.5rem;
    text-align: center;
}

.producto-relacionado-titulo {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.producto-relacionado-subtitulo {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.producto-relacionado-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid #c0392b;
    color: #c0392b;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.producto-relacionado-card:hover .producto-relacionado-btn {
    background: #c0392b;
    color: #fff;
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.is-open {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ddd;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Producto */
@media (max-width: 900px) {
    .producto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .producto-imagen-container {
        position: static;
    }

    .producto-titulo {
        font-size: 3.5rem;
    }

    .producto-info {
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .producto-page {
        padding-top: 80px;
    }

    .producto-titulo {
        font-size: 2.8rem;
    }

    .productos-relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto-relacionado-titulo {
        font-size: 1.6rem;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

/* Footer Principal (Fondo Azul) */
.site-footer {
    margin-top: 0;
}

.footer-main {
    background-color: #2c3e50;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Columna 1: Menú Footer Acordeón */
.footer-menu-column .footer-navigation {
    width: 100%;
}

.footer-menu-column .footer-navigation .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.footer-menu-column .footer-menu>li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: block;
    width: 100%;
}

.footer-menu-column .footer-menu>li:last-child {
    border-bottom: none;
}

.footer-menu-column .footer-menu>li>a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    display: block;
    padding: 0.85rem 0;
    transition: color 0.3s ease;
}

.footer-menu-column .footer-menu>li>a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Botón toggle acordeón footer */
.footer-menu-column .menu-item-has-children {
    position: relative;
}

.footer-menu-column .menu-item-has-children>a {
    padding-right: 2.5rem;
}

.footer-menu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 48px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.footer-menu-toggle:hover {
    color: #fff;
}

.footer-menu-toggle svg {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
}

.footer-menu-column .menu-item-has-children.is-open>.footer-menu-toggle svg {
    transform: rotate(180deg);
}

/* Submenú acordeón footer */
.footer-menu-column .footer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
}

.footer-menu-column .menu-item-has-children.is-open>.sub-menu {
    max-height: 500px;
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
}

.footer-menu-column .footer-menu .sub-menu li {
    margin-bottom: 0;
    display: block;
    width: 100%;
}

.footer-menu-column .footer-menu .sub-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu-column .footer-menu .sub-menu a {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.footer-menu-column .footer-menu .sub-menu a:hover {
    color: #fff;
}

/* Columna 2: Logo + Slogan + Email (centrado) */
.footer-center-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

.footer-slogan {
    color: #fff;
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.footer-email {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Columna 3: Redes + Dirección + Teléfono (alineado derecha) */
.footer-contact-column {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social .social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-address {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.footer-phone {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Post Footer (Copyright + Legal) */
.footer-post {
    background-color: #243342;
    padding: 1.5rem 0;
}

.footer-post .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0;
}

.legal-navigation .legal-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.legal-menu li a:hover {
    color: #fff;
}

/* End Footer (Sponsors) */
.footer-sponsors {
    background-color: #fff;
    padding: 2rem 0;
}

.footer-sponsors .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsors-image {
    max-width: 100%;
    height: auto;
}

/* Botón Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-center-column {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-menu-column,
    .footer-contact-column {
        text-align: center;
    }

    .footer-contact-column {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .legal-navigation .legal-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   PÁGINA DE TIENDAS - Estilo Azul Corporativo
   ========================================================================== */

/* Página que contiene el Store Locator */
body.page:has(.asl-container) {
    background-color: #02335c !important;
}

body.page:has(.asl-container) .site-main {
    background-color: #02335c;
    padding-top: 300px;
    margin-top: 0;
}

body.page:has(.asl-container) .entry-content {
    background-color: #02335c;
    padding: 0;
}

body.page:has(.asl-container) .entry-header {
    display: none;
    /* Ocultar título por defecto de WordPress */
}

body.page:has(.asl-container) article.page {
    background-color: #02335c;
}

/* Fallback para navegadores que no soportan :has() */
.page-tiendas,
.page-nuestras-tiendas,
.page-store-locator {
    background-color: #02335c !important;
}

.page-tiendas .site-main,
.page-nuestras-tiendas .site-main,
.page-store-locator .site-main {
    background-color: #02335c;
    padding-top: 300px;
}

.page-tiendas .entry-title,
.page-nuestras-tiendas .entry-title,
.page-store-locator .entry-title {
    color: #ffffff;
}