/*
 Theme Name:   3718GP - Canary White Edition
 Description:  Child Theme para 3718 - de El Teide. Edición Claridad Canariona.
 Author:       3718 Volcanic Architect
 Template:     generatepress
 Version:      1.3.0
 */

/* --- VARIABLES TEIDE 3718 --- */
:root {
    /* Colores base */
    --gp-black:             #111111; /* Negro estructural: Header, footer, botón primario, texto principal */
    --gp-black-hover:       #222222; /* Negro hover: Hover botón primario, submenús */
    --gp-white:             #F7F7F4; /* Blanco roto: Fondo general, columna blanca de la bandera */
    --gp-white-pure:        #FFFFFF; /* Blanco puro: Fondo tarjetas de producto, inputs */
    --gp-gray:              #666666; /* Gris texto: Texto secundario, metadatos, footer */

    /* Bandera canaria y acentos */
    --gp-blue:              #0077C8; /* Azul acento: Enlaces, iconos, badge SALE, foco de inputs */
    --gp-blue-bg:           rgba(0, 119, 200, 0.22); /* Azul Canarias opacidad 22% */
    --gp-yellow:            #FFCC00; /* Amarillo acento: Badge NUEVO, botón secundario, hover menú */
    --gp-yellow-bg:         rgba(255, 204, 0, 0.55); /* Amarillo Canarias opacidad 55% */

    /* Naranja Magma para transiciones y marca */
    --magma:                #E85D04;

    /* Fuentes */
    --nunito:               'Nunito', sans-serif;
    --noto:                 'Noto Sans', sans-serif;
}

/* --- ESTRUCTURA GLOBAL --- */
body {
    background-color: var(--gp-white);
    background-image: none;
    color: var(--gp-black);
    font-family: var(--noto);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* La Bandera Canaria Lateral con Pliegues y Efecto Ondulante SOLAMENTE se muestra en la HOME en Desktop */
@media (min-width: 769px) {
    body.home {
        background: 
            /* 1. Capa de Textura de Grano Volcánico (Efecto Basalto muy sutil) */
            url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc29nPg=='),
            /* 2. PLIEGUES DE VIENTO (Luces y Sombras Degradadas, muy suaves para no quitar protagonismo) */
            repeating-linear-gradient(105deg, 
                rgba(0,0,0,0.12) 0px, 
                rgba(0,0,0,0.04) 50px,
                transparent 100px, 
                rgba(255,255,255,0.08) 150px, 
                transparent 200px,
                rgba(0,0,0,0.12) 250px
            ),
            /* 3. La Bandera de Canarias (Base con Colores Suaves y Opacidad Controlada: Azul 22%, Amarillo 55%) */
            linear-gradient(to right, 
                var(--gp-white) 0%, 
                var(--gp-white) calc((100% - 1400px) / 2 * 0.666), 
                var(--gp-blue-bg) calc((100% - 1400px) / 2 * 0.666), 
                var(--gp-blue-bg) calc((100% - 1400px) / 2), 
                transparent calc((100% - 1400px) / 2), 
                transparent calc(100% - (100% - 1400px) / 2), 
                var(--gp-blue-bg) calc(100% - (100% - 1400px) / 2), 
                var(--gp-blue-bg) calc(100% - (100% - 1400px) / 2 * 0.666), 
                var(--gp-yellow-bg) calc(100% - (100% - 1400px) / 2 * 0.666), 
                var(--gp-yellow-bg) 100%
            );
        background-attachment: fixed;
        background-color: var(--gp-white);
    }
}

/* CONTENEDOR MAESTRO 1400PX */
.gp3718-header-container,
.gp3718-footer-container,
.grid-container,
.site-content,
.gp3718-category-grid {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100%;
}

#page, 
.site-content, 
.inside-article {
    background-color: var(--gp-white-pure) !important;
}

.site-content {
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    padding: 0 0 40px !important; /* Sin padding superior para pegar elementos al header */
}

/* Espaciado lateral para evitar que el contenido de la tienda y páginas WooCommerce toque los bordes del contenedor */
.woocommerce .site-content,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content {
    padding: 0 clamp(16px, 4vw, 40px) 40px !important;
    box-sizing: border-box !important;
}

/* --- BARRA HORIZONTAL DE LA BANDERA DEBAJO DEL HEADER --- */
.gp3718-header-flag {
    height: 6px;
    /* Blanco, Azul y Amarillo en tercios exactos (1:1:1) sin degradado duro */
    background: linear-gradient(to right, #FFFFFF 33.33%, var(--gp-blue) 33.33%, var(--gp-blue) 66.66%, var(--gp-yellow) 66.66%);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

/* Ocultar en pantallas de escritorio (min-width: 769px) únicamente en la home porque ya tiene las laterales */
@media (min-width: 769px) {
    .home .gp3718-header-flag {
        display: none;
    }
}

/* --- HEADER --- */
.gp3718-main-header {
    background-color: var(--gp-black) !important;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gp3718-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gp3718-logo img {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.gp3718-logo img:hover {
    transform: scale(1.05);
}

/* LADO DERECHO: menú + iconos + hamburguesa */
.gp3718-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* MENÚ NAVEGACIÓN */
.gp3718-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp3718-nav a {
    color: var(--gp-white) !important;
    font-family: var(--nunito);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.gp3718-nav a:hover,
.gp3718-nav li.current-menu-item > a {
    color: var(--gp-yellow) !important;
}

/* ACCIONES: cuenta, carrito, lupa, hamburguesa */
.gp3718-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gp3718-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gp-white) !important;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gp3718-icon-link:hover {
    color: var(--gp-yellow) !important;
    transform: scale(1.12);
}

.header-icon-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* BADGE CONTADOR DEL CARRITO */
.gp3718-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--gp-yellow);
    color: var(--gp-black);
    font-size: 10px;
    font-weight: 800;
    font-family: var(--nunito);
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
}

.gp3718-cart-badge.badge-visible {
    display: flex;
}

/* ICONO HAMBURGUESA (solo visible en móvil) */
.gp3718-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--gp-white-pure); /* Fuerza blanco puro para el SVG via currentColor */
    transition: color 0.2s ease, transform 0.2s ease;
}

.gp3718-menu-toggle:hover {
    color: var(--gp-yellow);
    transform: scale(1.12);
}

/* BARRA MÓVIL DE ICONOS (Cuenta / Carrito / Lupa) */
.gp3718-mobile-icons-bar {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 12px;
}

/* SEARCH COMBOBOX: barra de búsqueda desplegable */
.gp3718-search-combobox {
    display: block;
    max-height: 0;
    overflow: hidden;
    background-color: var(--gp-black);
    border-top: 1px solid transparent;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease,
                padding 0.35s ease;
}

.gp3718-search-combobox.search-active {
    max-height: 100px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
}

.search-combobox-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-combobox-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s ease;
}

.search-combobox-form:focus-within {
    border-color: var(--gp-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.2);
}

.search-combobox-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--gp-white) !important;
    font-family: var(--nunito) !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    padding: 10px 20px !important;
    outline: none !important;
}

.search-combobox-input::placeholder {
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

.search-combobox-submit {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--gp-white) !important;
    padding: 10px 18px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.search-combobox-submit:hover {
    color: var(--gp-yellow) !important;
}

.search-submit-icon {
    width: 18px;
    height: 18px;
}

/* --- SHORTCODE: PANORAMA SLIDER --- */
.gp3718-panorama-slider {
    position: relative;
    max-width: 1400px;
    height: 692px; /* Proporción exacta para imágenes de 1456x720 en un contenedor de 1400px */
    margin: 0 auto 60px;
    overflow: hidden;
    background: var(--gp-black);
}

.panorama-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.panorama-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

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

.panorama-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s linear;
}

.panorama-slide.active img {
    transform: scale(1.04); /* Zoom muy sutil para no recortar la imagen original */
}

.panorama-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.panorama-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panorama-dot.active {
    background: var(--magma);
    transform: scale(1.8);
    box-shadow: 0 0 10px var(--magma);
}

/* --- SHORTCODE: HERO REVEAL --- */
.gp3718-hero-reveal {
    display: flex;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: var(--gp-black);
}

.hero-column {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-column:hover {
    flex: 1.5;
}

.hero-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.8s ease, filter 0.5s;
}

.hero-column:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- SHORTCODE: MOSAICO DE CATEGORÍAS --- */
.gp3718-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 60px 0;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--gp-white-pure) !important;
    border: 1px solid rgba(34, 34, 34, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    aspect-ratio: 3 / 4; /* Proporción de retrato vertical premium de moda */
}

.category-card a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.category-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llenado uniforme del contenedor */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.category-peana {
    background-color: var(--gp-white-pure);
    text-align: center;
    padding: 14px 10px; /* Padding elegante y equilibrado */
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    max-height: 50px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.3s ease, 
                border-color 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.category-peana h4 {
    color: var(--gp-black);
    font-family: var(--nunito);
    font-weight: 800;
    font-size: 15px; /* Tamaño estilizado */
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.category-card:hover .category-peana {
    max-height: 0;
    padding: 0 10px;
    opacity: 0;
    border-top-color: transparent;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.7); /* Contraste elegante de basalto */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.08);
}

.category-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.category-card:hover .category-info {
    transform: translateY(0);
}

.category-info h3 {
    color: var(--gp-white-pure);
    font-family: var(--nunito);
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.view-more {
    color: var(--magma);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--magma);
    padding-bottom: 5px;
}

/* --- SHORTCODE: MANIFIESTO --- */
.gp3718-light-section {
    padding: 120px 0;
    text-align: center;
    background: var(--gp-white-pure);
}

.gp3718-light-section h2 {
    font-family: var(--nunito);
    font-weight: 900;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 30px;
    color: var(--gp-black);
}

.gp3718-light-section p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.8;
    color: var(--gp-black);
    opacity: 0.8;
}

/* --- BOTONES Y COMPONENTES INTERACTIVOS --- */
/* Botón Primario */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.gp-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-button,
.add_to_cart_button,
button.single_add_to_cart_button {
    background-color: var(--gp-black) !important;
    color: var(--gp-white-pure) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-family: var(--noto) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: background-color 0.15s ease !important;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.gp-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background-color: var(--gp-black-hover) !important;
}

/* Botón Secundario */
button.secondary,
input[type="button"].secondary,
input[type="submit"].secondary,
.gp-button.secondary,
.btn-secondary {
    background-color: var(--gp-yellow) !important;
    color: var(--gp-black) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-family: var(--noto) !important;
    font-weight: 600 !important;
    transition: background-color 0.15s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

button.secondary:hover,
input[type="button"].secondary:hover,
input[type="submit"].secondary:hover,
.gp-button.secondary:hover,
.btn-secondary:hover {
    background-color: #E6B800 !important;
}

/* Botón Alternativo (Azul) */
button.alt,
input[type="button"].alt,
input[type="submit"].alt,
.gp-button.alt,
.btn-alt {
    background-color: var(--gp-blue) !important;
    color: var(--gp-white-pure) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-family: var(--noto) !important;
    font-weight: 600 !important;
    transition: background-color 0.15s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

button.alt:hover,
input[type="button"].alt:hover,
input[type="submit"].alt:hover,
.gp-button.alt:hover,
.btn-alt:hover {
    background-color: #0066A8 !important;
}

/* Enlaces en Contenido */
a {
    color: var(--gp-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gp-black-hover);
}

/* Formularios e Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
    background-color: var(--gp-white-pure) !important;
    border: 1px solid rgba(34, 34, 34, 0.08) !important;
    color: var(--gp-black) !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-family: var(--noto) !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--gp-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.2) !important;
}

/* Errores WooCommerce */
.woocommerce-error,
.woocommerce-error li {
    border: 1px solid #D84747 !important;
    background-color: #FFEEFF !important;
    color: #CC0000 !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    list-style: none !important;
}

/* --- WOOCOMMERCE --- */
/* Grid de Productos (Loops) */
.woocommerce ul.products li.product {
    background: var(--gp-white-pure) !important;
    border: 1px solid rgba(34, 34, 34, 0.08) !important;
    padding: 15px !important;
    border-radius: 4px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--gp-black) !important;
    font-family: var(--nunito) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-align: left !important;
    padding: 10px 0 5px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--gp-black) !important;
    font-family: var(--noto) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-align: left !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--gp-gray) !important;
    font-weight: 400 !important;
    margin-right: 5px !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--gp-black) !important;
}

/* Ficha de Producto (Detalle) */
.woocommerce div.product .product_title {
    color: var(--gp-black) !important;
    font-family: var(--nunito) !important;
    font-weight: 800 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--gp-black) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Etiquetas / Badges */
.woocommerce span.onsale,
.onsale,
.badge-sale {
    background-color: var(--gp-blue) !important;
    color: var(--gp-white-pure) !important;
    font-family: var(--nunito) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    letter-spacing: 1px !important;
}

.badge-nuevo,
.woocommerce span.new,
.badge-new {
    background-color: var(--gp-yellow) !important;
    color: var(--gp-black) !important;
    font-family: var(--nunito) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    letter-spacing: 1px !important;
}

/* Paginación */
.woocommerce nav.woocommerce-pagination ul li span.current,
.page-numbers.current {
    background-color: var(--gp-black) !important;
    color: var(--gp-white-pure) !important;
    border-color: var(--gp-black) !important;
    border-radius: 4px !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.page-numbers:hover {
    background-color: var(--gp-black-hover) !important;
    color: var(--gp-white-pure) !important;
    border-color: var(--gp-black-hover) !important;
    border-radius: 4px !important;
}

/* --- FOOTER --- */
.gp3718-main-footer {
    background-color: var(--gp-black) !important;
    color: var(--gp-gray) !important;
    padding: 70px 0 0;
    border-top: 2px solid rgba(255,255,255,0.06);
}

.gp3718-footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* FILA DE CONTACTO */
.gp3718-footer-contact-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding: 28px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-family: var(--nunito);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    max-width: 420px;
    text-align: left;
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--gp-blue);
}

.footer-contact-item a {
    color: var(--gp-blue) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--gp-yellow) !important;
}

.footer-title {
    color: var(--gp-white-pure);
    font-family: var(--nunito);
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-links a {
    color: var(--gp-blue) !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--gp-yellow) !important;
}

.gp3718-footer-flag-wrap {
    margin: 30px 0;
    max-width: 180px;
}

.gp3718-footer-flag {
    width: 180px;
    height: 120px;
    background: 
        /* 1. Capa de Textura */
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4xIi8+PC9zdmc+'),
        /* 2. PLIEGUES DE VIENTO */
        repeating-linear-gradient(105deg, 
            rgba(0,0,0,0.5) 0px, 
            rgba(0,0,0,0.15) 20px,
            transparent 40px, 
            rgba(255,255,255,0.28) 60px, 
            transparent 80px,
            rgba(0,0,0,0.5) 100px
        ),
        /* 3. La Bandera de Canarias (Base) */
        linear-gradient(to right, #FFFFFF 33.33%, var(--gp-blue) 33.33%, var(--gp-blue) 66.66%, var(--gp-yellow) 66.66%);
    border-radius: 2px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

.gp3718-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
    margin-top: 35px;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.footer-legal-links a {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.footer-legal-links a:hover {
    color: var(--gp-yellow);
}

.copyright-final {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gp-white-pure);
    text-transform: uppercase;
    font-family: var(--nunito);
    margin: 0;
}

.gp3718-footer-claim {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gp-white);
    margin-top: 15px;
    font-family: var(--noto);
    font-style: italic;
    opacity: 0.85;
    text-align: left;
}

.footer-instagram-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gp-white-pure) !important;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.3s;
    font-family: var(--noto);
    font-weight: 700;
}

.footer-instagram-link:hover {
    color: var(--gp-yellow) !important;
}

.instagram-icon {
    stroke: var(--gp-blue);
    transition: 0.3s;
}

.footer-instagram-link:hover .instagram-icon {
    stroke: var(--gp-yellow);
    transform: scale(1.1);
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.copyright {
    font-size: 12px;
    color: var(--gp-white);
    opacity: 0.7;
    line-height: 1.4;
}

.footer-brand-story {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gp-white);
    font-family: var(--noto);
    font-style: italic;
    opacity: 0.9;
    max-width: 300px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .gp3718-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* HEADER MÓVIL */
    .gp3718-header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }
    
    /* Ocultar nav y iconos de escritorio, mostrar solo hamburguesa */
    .gp3718-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--gp-black);
        z-index: 9999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 20px 30px;
        overflow-y: auto;
    }

    .gp3718-nav.menu-active {
        display: flex;
    }

    .gp3718-nav ul {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .gp3718-nav a {
        font-size: 22px !important;
        letter-spacing: 3px;
    }

    /* Ocultar iconos de acción SOLO dentro del bloque de escritorio (.gp3718-header-actions) en móvil.
       Los mismos iconos en .gp3718-mobile-icons-bar DEBEN seguir siendo visibles. */
    .gp3718-header-actions .gp3718-account-btn,
    .gp3718-header-actions .gp3718-cart-btn,
    .gp3718-header-actions .gp3718-search-trigger {
        display: none;
    }
    
    /* Mostrar la hamburguesa en móvil */
    .gp3718-menu-toggle {
        display: flex;
        position: relative;
        z-index: 10000;
    }

    .gp3718-menu-toggle .header-icon-svg {
        width: 26px;
        height: 26px;
    }

    /* Barra de iconos móvil (Cuenta/Carrito/Lupa) visible */
    .gp3718-mobile-icons-bar {
        display: flex;
    }

    /* FOOTER MÓVIL */
    .gp3718-footer-container {
        grid-template-columns: 1fr;
        justify-items: center;   /* centra cada celda del grid */
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .footer-brand-story {
        text-align: center;
        max-width: 100%;
    }

    .gp3718-footer-contact-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
        max-width: 90%;
    }

    .gp3718-footer-flag-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .gp3718-footer-claim {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* CATEGORÍAS MÓVIL: adaptativas y uniformes con aspect-ratio natural */
    .gp3718-category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 12px;
        gap: 12px;
    }
    
    .category-peana {
        padding: 8px 4px !important;
        max-height: 38px !important;
    }
    
    .category-peana h4 {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .category-info h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .category-info {
        padding: 10px !important;
    }

    .view-more {
        font-size: 9px !important;
        letter-spacing: 1.5px !important;
        padding-bottom: 2px !important;
    }
    
    body {
        background-color: var(--gp-white) !important;
        background-image: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   9.0 SECCIÓN MANIFIESTO DE MARCA [gp3718_manifiesto]
   Bloque de texto + botón CTA hacia /3718-metros/
   SEO: h2 keyword-rich, párrafo de marca, enlace interno
   ═══════════════════════════════════════════════════════════════ */
.gp3718-manifiesto-section {
    background-color: var(--gp-black);       /* Fondo basalto — contrasta con el cuerpo blanco */
    padding: 72px 24px;
    text-align: center;
}

.gp3718-manifiesto-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Titular h2: tipografía de marca, blanco puro */
.gp3718-manifiesto-titulo {
    font-family: var(--nunito);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--gp-white-pure);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

/* Cuerpo de texto: Noto Sans, legible, gris suave */
.gp3718-manifiesto-texto {
    font-family: var(--noto);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.gp3718-manifiesto-texto p {
    margin: 0 0 12px;
}

.gp3718-manifiesto-texto p:last-child {
    margin-bottom: 0;
}

/* Botón CTA: reutiliza el estilo secondary del tema con ajuste de margen */
.gp3718-manifiesto-cta {
    margin-top: 8px;
    display: inline-block;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .gp3718-manifiesto-section {
        padding: 48px 20px;
    }
    .gp3718-manifiesto-titulo {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10.0 CORRECCIÓN DE ESTILOS WOOCOMMERCE BLOCKS (CARRITO Y SELECTORES)
   Ajusta selectores de cantidad y botones de eliminación
   ═══════════════════════════════════════════════════════════════ */
.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(17, 17, 17, 0.15) !important;
    border-radius: 4px !important;
    background: var(--gp-white-pure) !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 38px !important;
}

.wc-block-components-quantity-selector__button {
    background: #EAEAEA !important;
    color: var(--gp-black) !important;
    border: none !important;
    width: 36px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.wc-block-components-quantity-selector__button:hover:not([disabled]) {
    background: #D8D8D8 !important;
}

.wc-block-components-quantity-selector__button[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #F3F3F3 !important;
    color: #999999 !important;
}

.wc-block-components-quantity-selector__input {
    border: none !important;
    width: 45px !important;
    height: 100% !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--gp-black) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--gp-white-pure) !important;
    -moz-appearance: textfield !important;
}

.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

button.wc-block-cart-item__remove-link {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    margin: 0 0 0 10px !important;
    color: #999999 !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s, background-color 0.2s !important;
    box-shadow: none !important;
}

button.wc-block-cart-item__remove-link:hover {
    background-color: rgba(232, 93, 4, 0.1) !important;
    color: var(--magma, #E85D04) !important;
}

button.wc-block-cart-item__remove-link svg {
    fill: currentColor !important;
    width: 20px !important;
    height: 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   11.0 CORRECCIÓN DE ETIQUETAS FLOTANTES EN FORMULARIOS WOOCOMMERCE BLOCKS
   Resuelve el solapamiento de etiquetas y valores en inputs y selects
   ═══════════════════════════════════════════════════════════════ */

/* 11.1 TEXT INPUTS, EMAILS, Y TEXTAREAS */
.wc-block-components-text-input,
.wc-blocks-components-text-input,
.wc-block-components-textarea-input,
.wc-blocks-components-textarea {
    position: relative !important;
}

.wc-block-components-text-input input,
.wc-blocks-components-text-input input,
.wc-block-components-textarea-input textarea,
.wc-blocks-components-textarea textarea {
    padding: 20px 14px 6px !important;
    height: 48px !important;
    box-sizing: border-box !important;
}

.wc-block-components-textarea-input textarea,
.wc-blocks-components-textarea textarea {
    height: auto !important;
    min-height: 100px !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-text-input label,
.wc-block-components-textarea-input label,
.wc-blocks-components-textarea label {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.15s ease-out !important;
    pointer-events: none !important;
    font-size: 14px !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
}

.wc-block-components-textarea-input label,
.wc-blocks-components-textarea label {
    top: 20px !important;
    transform: none !important;
}

/* Flotar etiqueta de texto/textarea al estar activo o con foco */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-blocks-components-text-input.is-active label,
.wc-blocks-components-text-input:focus-within label,
.wc-block-components-textarea-input.is-active label,
.wc-block-components-textarea-input:focus-within label,
.wc-blocks-components-textarea.is-active label,
.wc-blocks-components-textarea:focus-within label {
    top: 10px !important;
    font-size: 10px !important;
    transform: translateY(0) !important;
    color: var(--gp-black, #111111) !important;
}

/* 11.2 SELECT DROPDOWNS (PAÍS, PROVINCIA, ETC.) */
.wc-blocks-components-select,
.wc-block-components-select,
.wc-blocks-components-select__container,
.wc-block-components-select__container {
    position: relative !important;
}

.wc-blocks-components-select__select,
.wc-block-components-select__select,
.wc-blocks-components-select select,
.wc-block-components-select select {
    padding: 20px 14px 6px !important;
    height: 48px !important;
    box-sizing: border-box !important;
}

/* Las etiquetas de select deben flotar siempre arriba de manera predeterminada para evitar colisión con el valor inicial */
.wc-blocks-components-select__label,
.wc-block-components-select__label,
.wc-blocks-components-select label,
.wc-block-components-select label {
    position: absolute !important;
    left: 14px !important;
    top: 10px !important;
    font-size: 10px !important;
    transform: none !important;
    pointer-events: none !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
    transition: all 0.15s ease-out !important;
}

.wc-blocks-components-select:focus-within label,
.wc-block-components-select:focus-within label {
    color: var(--gp-black, #111111) !important;
}