/* ===========================================================
   main.css – Tienwa (versión limpia / profesional)
   Estilos front (mobile first)
   Paleta:
   - Primario suave: #ff8a3d
   - Primario oscuro: #e66a18
   - Fondo general: #f7f7fa
   - Cards / bloques: #ffffff
   - Texto principal: #111827
   - Texto secundario: #6b7280
   =========================================================== */

/* ------------------------------ */
/* RESET BÁSICO                  */
/* ------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    height: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, blockquote {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    letter-spacing: -0.01em;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.gl-btn-primary,
.gl-btn-secondary {
    font-weight: 600;
    letter-spacing: 0.015em;
}

/* Bloquea el scroll cuando el menú móvil está abierto */
body.gl-nav-open {
    overflow: hidden;
}

/* ------------------------------ */
/* VARIABLES                     */
/* ------------------------------ */

:root {
    --gl-primary: #ff8a3d;
    --gl-primary-dark: #e66a18;
    --gl-primary-soft: #fff3e6;
    --gl-bg: #f7f7fa;
    --gl-bg-card: #ffffff;
    --gl-text-main: #111827;
    --gl-text-muted: #6b7280;
    --gl-border-soft: #e5e7eb;
    --gl-radius-sm: 6px;
    --gl-radius-md: 10px;
    --gl-radius-lg: 14px;
    --gl-shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.06);
    --gl-header-bg: #ffffff;
}

/* ------------------------------ */
/* BODY                          */
/* ------------------------------ */

.gl-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        /* halo suave usando el color primario del tema */
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--gl-primary) 14%, #ffffff),
            transparent 55%
        ),
        /* color de fondo general configurable */
        var(--gl-bg);
    color: var(--gl-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenedor principal */
.gl-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    flex: 1 0 auto;
    width: 100%;
}

/* ------------------------------ */
/* HEADER                        */
/* ------------------------------ */

.gl-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    /* altura de referencia para el menú móvil */
    --gl-header-height: 60px;
}

.gl-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--gl-header-height);
}

/* Logo (adaptable a cualquier formato) */
.gl-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

/* Caja contenedora del logo — ahora totalmente transparente */
.gl-logo-box {
    width: 44px;
    height: 44px;
    border-radius: 0;              /* sin redondeo */
    padding: 0;                    /* sin padding */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;              /* evita que sobresalga un logo raro */
}

@media (min-width: 768px) {
    .gl-logo-box {
        width: 52px;
        height: 52px;
    }
}

/* La imagen se adapta sin deformarse y sin fondo */
.gl-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;           /* el punto clave */
    object-position: center;
    display: block;
}

/* Texto del logo */
.gl-logo-text-group {
    display: flex;
    flex-direction: column;
}

.gl-logo-title {
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--gl-text-main);
    line-height: 1.2;
}

.gl-logo-tagline {
    font-size: 0.72rem;
    color: var(--gl-text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* En móvil, opcional ocultar tagline */
@media (max-width: 480px) {
    .gl-logo-tagline {
        display: none;
    }
}


/* Nav base */
.gl-nav {
    display: none; /* mobile: oculto, se muestra con burger */
}

.gl-nav-list {
    display: flex;
    gap: 1.2rem;
}

.gl-nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gl-text-muted);
    transition: color 0.15s ease;
}

/* Hover y activo: solo cambio de color, sin subrayado ni borde */
.gl-nav-list a:hover,
.gl-nav-list a.is-active {
    color: var(--gl-primary);
}

/* Acciones header */
.gl-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botón WhatsApp header (solo desktop) */
.gl-header-whatsapp {
    display: none;
}

/* Carrito */
.gl-cart-btn {
    position: relative;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gl-text-main);
    font-size: 0.85rem;
}

.gl-cart-icon {
    font-size: 1.05rem;
}

.gl-cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--gl-primary);
    color: #ffffff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Burger tipo tarjeta */
.gl-burger {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.gl-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.22s ease, opacity 0.18s ease;
}

/* Overlay oscuro detrás del panel de menú */
.gl-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 40;
}

.gl-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Estado abierto burger → X */
.gl-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.gl-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.gl-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------ */
/* MENÚ MÓVIL                    */
/* ------------------------------ */

@media (max-width: 767px) {

    .gl-nav {
        position: fixed;
        top: var(--gl-header-height, 60px); /* no tapa el header */
        right: 0;
        bottom: 0;
        width: min(340px, 85%);
        background: #ffffff;
        border-radius: 18px 0 0 18px;
        box-shadow: -18px 0 40px rgba(15, 23, 42, 0.25);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        display: flex;
        flex-direction: column;
        padding: 0;          /* padding lo lleva el inner */
        z-index: 60;
    }

    .gl-nav.is-open {
        transform: translateX(0);
        animation: gl-menu-wave 0.25s ease-out;
    }

    .gl-nav-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 1.4rem 1.4rem 1.6rem;
        gap: 1rem;
    }

    /* Cabecera del menú */
    .gl-nav-header {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .gl-nav-title {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-weight: 700;
        color: #9ca3af;
    }

    .gl-nav-subtitle {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--gl-text-main);
    }

    /* Lista de enlaces */
    .gl-nav-list {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin: 0.3rem 0 0;
    }

    .gl-nav-list li {
        list-style: none;
    }

    .gl-nav-list a {
        display: block;
        padding: 0.65rem 0.9rem;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--gl-text-muted);
        transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    }

    .gl-nav-list a:hover {
        background: #f3f4f6;
        transform: translateX(-2px);
    }

    .gl-nav-list a.is-active {
        background: var(--gl-primary-soft);
        color: var(--gl-primary-dark);
    }

    /* Footer con CTA */
    .gl-nav-footer {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid #e5e7eb;
        text-align: center;
    }

    .gl-nav-cta {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 999px;
        background: #25d366;
        color: #0e3c1f;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 12px 26px rgba(10, 174, 72, 0.35);
        text-align: center;
        margin-bottom: 0.45rem;
    }

    .gl-nav-cta:hover {
        opacity: 0.95;
        transform: translateY(-1px);
    }

    .gl-nav-meta {
        margin: 0;
        font-size: 0.75rem;
        color: #9ca3af;
    }

    .gl-header-whatsapp {
        display: none;
    }
}

/* animación ligera del panel */
@keyframes gl-menu-wave {
    from {
        transform: translateX(12px);
        opacity: 0.9;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ------------------------------ */
/* HERO                          */
/* ------------------------------ */

.gl-hero {
    margin-top: 1.75rem;
    padding: 1.6rem 1.4rem;
    border-radius: var(--gl-radius-lg);
    background:
        /* halo blanco arriba a la izquierda */
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.95), transparent 60%),
        /* halo de color principal abajo a la derecha */
        radial-gradient(
            circle at 100% 100%,
            color-mix(in srgb, var(--gl-primary) 18%, transparent),
            transparent 55%
        ),
        #ffffff;
    color: var(--gl-text-main);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

/* halo suave en el fondo, ligado al color primario */
.gl-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--gl-primary) 40%, transparent),
        transparent 65%
    );
    right: -80px;
    top: -80px;
    opacity: 0.9;
    pointer-events: none;
    filter: blur(4px);
}

.gl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 0 100%,
            color-mix(in srgb, var(--gl-primary-dark) 22%, transparent),
            transparent 60%
        ),
        radial-gradient(
            circle at 100% 0,
            color-mix(in srgb, var(--gl-primary) 14%, transparent),
            transparent 55%
        );
    opacity: 0.6;
    pointer-events: none;
}

/* contenido principal del hero */
.gl-hero-content {
    position: relative;
    max-width: 520px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* pequeña etiqueta encima del título */
.gl-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gl-primary) 12%, transparent);
    color: var(--gl-primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gl-hero h1 {
    font-size: 1.7rem;
    line-height: 1.18;
    margin: 0;
    letter-spacing: -0.02em;
}

.gl-hero-title-main {
    display: block;
}

.gl-hero p {
    font-size: 0.95rem;
    color: var(--gl-text-muted);
    margin: 0;
    max-width: 34rem;
    line-height: 1.55;
}

/* contenedor de botones */
.gl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

/* Botón principal hero (WhatsApp) */
.gl-hero-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: #25d366;
    color: #0e3c1f;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 26px rgba(10, 174, 72, 0.35);
    border: 1px solid rgba(9, 124, 50, 0.25);
    white-space: nowrap;
}

.gl-hero-whatsapp span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gl-hero-whatsapp-icon {
    font-size: 1.1rem;
}

/* Badge lateral */
.gl-hero-badge {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    text-align: right;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    min-width: 120px;
}

.gl-hero-badge span {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--gl-primary-dark);
}

.gl-hero-badge small {
    display: block;
    font-size: 0.74rem;
    color: var(--gl-text-muted);
    margin-top: 0.1rem;
}

.gl-hero-badge-stat {
    font-size: 0.75rem;
    color: var(--gl-text-muted);
}

@media (max-width: 767px) {
    .gl-hero {
        padding: 1.4rem 1.2rem 1.7rem;
    }

    .gl-hero h1 {
        font-size: 1.45rem;
    }

    .gl-hero-badge {
        position: static;
        margin-top: 1rem;
        text-align: left;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    }
}


/* ------------------------------ */
/* CATEGORÍAS                    */
/* ------------------------------ */

.gl-categories {
    margin-top: 2rem;
}

.gl-categories h2 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.gl-category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    padding-bottom: 0.2rem;
}

.gl-category-list::-webkit-scrollbar {
    height: 6px;
}

.gl-category-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.gl-category-btn {
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: var(--gl-text-main);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.gl-category-btn.is-active {
    background: var(--gl-primary-soft);
    border-color: var(--gl-primary);
    color: var(--gl-primary-dark);
}

/* ------------------------------ */
/* PRODUCTOS (listado)           */
/* ------------------------------ */

.gl-products {
    margin-top: 2rem;
}

.gl-products h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gl-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

/* Tarjeta producto */
.gl-product-card {
    background: var(--gl-bg-card);
    border-radius: var(--gl-radius-md);
    padding: 0.7rem;
    box-shadow: var(--gl-shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    border: 1px solid #eef0f4;
}

/* Imagen en la tarjeta de producto (listado) */
.gl-product-image-link {
    display: block;
    border-radius: var(--gl-radius-sm);
    overflow: hidden;
    background: var(--gl-primary-soft);
}

.gl-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.gl-product-image-link:hover .gl-product-image {
    transform: scale(1.03);
}

/* Descuento badge */
.gl-product-discount {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Cuerpo tarjeta */
.gl-product-body {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gl-product-title a {
    font-size: 0.9rem;
    font-weight: 600;
}

.gl-product-category {
    font-size: 0.78rem;
    color: var(--gl-text-muted);
}

/* Precios */
.gl-product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.gl-price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--gl-text-muted);
}

.gl-price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gl-primary-dark);
}

/* Stock */
.gl-product-stock {
    font-size: 0.78rem;
    color: #b91c1c;
}

/* Acciones */
.gl-product-actions {
    margin-top: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Botones genéricos */
.gl-btn-primary,
.gl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: var(--gl-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gl-btn-primary {
    background: var(--gl-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(230, 106, 24, 0.25);
}

.gl-btn-primary:hover {
    background: var(--gl-primary-dark);
    box-shadow: 0 10px 22px rgba(230, 106, 24, 0.28);
}

.gl-btn-secondary {
    background: #f3f4f6;
    color: var(--gl-text-main);
    border: 1px solid #e5e7eb;
}

.gl-btn-secondary:hover {
    background: #e5e7eb;
}

/* Botón WhatsApp específico */
.gl-btn-whatsapp {
    background: #25d366;
    color: #0e3c1f;
    box-shadow: 0 8px 18px rgba(10, 174, 72, 0.3);
}

/* ------------------------------ */
/* BLOQUE CONFIANZA              */
/* ------------------------------ */

.gl-trust {
    margin-top: 2.5rem;
}

.gl-trust h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.gl-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.gl-trust-item {
    background: #ffffff;
    border-radius: var(--gl-radius-md);
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.03);
}

.gl-trust-item h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.gl-trust-item p {
    font-size: 0.82rem;
    color: var(--gl-text-muted);
}

/* ------------------------------ */
/* FICHA DE PRODUCTO (productos.php)
/* ------------------------------ */

.gl-product-detail {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Columna izquierda: galería */
.gl-product-gallery {
    background: var(--gl-bg-card);
    border-radius: var(--gl-radius-md);
    padding: 0.9rem;
    border: 1px solid var(--gl-border-soft);
    box-shadow: var(--gl-shadow-soft);
}

/* Card principal 4:3 */
.gl-product-main-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3 !important;  /* forzamos 4:3 siempre */
    background: #f3f4f6;
    border-radius: var(--gl-radius-md);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: zoom-in;
}

/* Imagen dentro del card 4:3 */
.gl-product-main-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* llena el 4:3 aunque recorte un poco */
}

.gl-product-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    overflow-x: auto;
}

.gl-product-thumb {
    flex: 0 0 auto;
    border-radius: var(--gl-radius-sm);
    border: 1px solid #e5e7eb;
    padding: 0.2rem;
    background: #ffffff;
}

.gl-product-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--gl-radius-sm);
}

/* Columna derecha: info */
.gl-product-info {
    background: var(--gl-bg-card);
    border-radius: var(--gl-radius-md);
    padding: 1rem 1.1rem 1.2rem;
    border: 1px solid var(--gl-border-soft);
    box-shadow: var(--gl-shadow-soft);
}

.gl-product-detail-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.gl-product-detail-category {
    font-size: 0.85rem;
    color: var(--gl-text-muted);
    margin-bottom: 0.7rem;
}

.gl-product-detail-stock {
    font-size: 0.82rem;
    margin-bottom: 0.8rem;
}

.gl-product-detail-stock--low {
    color: #b91c1c;
}

.gl-product-detail-stock--none {
    color: #9ca3af;
}

.gl-product-detail-desc {
    font-size: 0.9rem;
    color: var(--gl-text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

/* Botones dentro de la ficha */
.gl-product-detail .gl-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.gl-product-detail .gl-product-actions .gl-btn-primary,
.gl-product-detail .gl-product-actions .gl-btn-secondary {
    width: 100%;
}

/* ===============================
   FICHA DE PRODUCTO – DESCRIPCIÓN LARGA
   =============================== */

.gl-product-longdesc-card {
    margin-top: 1.5rem;
    background: var(--gl-bg-card);
    border-radius: var(--gl-radius-md);
    border: 1px solid var(--gl-border-soft);
    box-shadow: var(--gl-shadow-soft);
    padding: 1rem 1.1rem 1.2rem;
}

.gl-product-longdesc-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    color: var(--gl-text-main);
}

.gl-product-longdesc-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gl-text-muted);
}

/* Enlaces dentro de la descripción larga (por si acaso) */
.gl-product-longdesc-text a {
    color: var(--gl-primary-dark);
    text-decoration: underline;
}
.gl-product-longdesc-text a:hover {
    text-decoration: none;
}


/* ------------------------------ */
/* OVERLAY GALERÍA IMÁGENES      */
/* ------------------------------ */

.gl-image-overlay {
    position: fixed;
    inset: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.gl-image-overlay.is-open {
    display: flex;
}

.gl-image-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* Flechas navegación */
.gl-image-overlay-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.7);
    color: #ffffff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gl-image-overlay-arrow:hover {
    background: rgba(17, 24, 39, 0.9);
}

.gl-image-overlay-prev {
    left: 1.5rem;
}

.gl-image-overlay-next {
    right: 1.5rem;
}

@media (max-width: 767px) {
    .gl-image-overlay-arrow {
        font-size: 1.2rem;
        padding: 0.5rem 0.7rem;
    }

    .gl-image-overlay-prev {
        left: 0.6rem;
    }

    .gl-image-overlay-next {
        right: 0.6rem;
    }
}

/* ------------------------------ */
/* FOOTER                        */
/* ------------------------------ */

.gl-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: 2.5rem;
    flex-shrink: 0;
    font-size: 0.85rem;          /* un pelín más grande */
}

.gl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 1rem 1.6rem;  /* más alto y cómodo */
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.gl-footer-col {
    min-width: 0;
}

/* Marca / datos */

.gl-footer-brand-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.gl-footer-logo {
    width: 38px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
}

.gl-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.gl-footer-site-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gl-text-main);
}

.gl-footer-tagline {
    font-size: 0.84rem;
    color: var(--gl-text-muted);
}

.gl-footer-contact {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.8rem;
}

.gl-footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: var(--gl-text-muted);
    font-size: 0.86rem;
}

.gl-footer-contact-line span:first-child {
    margin-top: 1px;
}

.gl-footer-contact-line a {
    color: inherit;
    text-decoration: none;
}

.gl-footer-contact-line a:hover {
    text-decoration: underline;
}

/* Redes sociales con icono */

.gl-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gl-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
}

.gl-footer-social a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gl-footer-social a:hover {
    border-color: var(--gl-primary);
}

/* Columnas de enlaces */

.gl-footer-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    color: var(--gl-text-main);
}

.gl-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
}

.gl-footer-list a {
    color: var(--gl-text-muted);
    text-decoration: none;
    font-size: 0.86rem;
}

.gl-footer-list a:hover {
    color: var(--gl-primary-dark);
}

.gl-footer-empty {
    color: var(--gl-text-muted);
    font-size: 0.84rem;
}

/* Línea inferior copy */

.gl-footer-bottom {
    border-top: 1px solid #e5e7eb;
}

.gl-footer-copy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1rem 1.1rem;
    color: var(--gl-text-muted);
    font-size: 0.8rem;
}

/* ------------------------------ */
/* Desktop layout                 */
/* ------------------------------ */
@media (min-width: 768px) {

    .gl-footer-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
    }

    .gl-footer-brand {
        flex: 1.2;
        max-width: 320px;
    }

    .gl-footer-categories,
    .gl-footer-legal {
        flex: 1;
    }

    /* ❗ CATEGORÍAS en una sola columna (vertical) */
    .gl-footer-categories .gl-footer-list {
        grid-template-columns: 1fr; /* Solo 1 columna */
        gap: 0.35rem;
    }
}


/* ------------------------------ */
/* RESPONSIVE – TABLET / DESKTOP */
/* ------------------------------ */

@media (min-width: 768px) {

    .gl-main {
        padding: 2rem 1.5rem 3.5rem;
    }

    /* Header: nav clásico dentro del header */
    .gl-nav {
        display: block !important;
        position: static;
        background: transparent;
        padding: 0;
        border: 0;
        box-shadow: none;
        overflow: visible;
        width: auto;
        transform: none !important; /* por si viene del drawer */
    }

    /* El wrapper del drawer se “aplana” */
    .gl-nav-inner {
        display: block;
        padding: 0;
        height: auto;
    }

    /* Ocultamos cabecera y footer del menú en escritorio */
    .gl-nav-header,
    .gl-nav-footer {
        display: none;
    }

    /* Lista horizontal normal */
    .gl-nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.2rem;
        margin: 0;
    }

    /* Enlaces sin pill ni padding grande */
    .gl-nav-list a {
        display: inline-block;
        padding: 0;
        border-radius: 0;
        background: transparent;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--gl-text-muted);
    }

    .gl-nav-list a:hover {
        color: var(--gl-primary);
        background: transparent;
        transform: none;
    }

    .gl-nav-list a.is-active {
        background: transparent;
        color: var(--gl-primary);
    }

    /* El overlay solo se usa en móvil */
    .gl-nav-overlay {
        display: none !important;
    }

    .gl-header-whatsapp {
        display: inline-flex;
        padding: 0.4rem 0.9rem;
        border-radius: 999px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        font-size: 0.82rem;
        color: var(--gl-text-main);
    }

    .gl-burger {
        display: none;
    }

    /* Hero */
    .gl-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2rem 2.1rem;
        margin-top: 2rem;
    }

    .gl-hero h1 {
        font-size: 2rem;
    }

    .gl-hero p {
        font-size: 1rem;
        max-width: 480px;
    }

    .gl-hero-badge {
        right: 2rem;
        bottom: 2rem;
    }

    /* Productos */
    .gl-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .gl-product-card {
        padding: 0.8rem;
    }

    /* Confianza */
    .gl-trust-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Footer */
    .gl-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Layout 2 columnas en ficha de producto */
    .gl-product-detail {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: flex-start;
        gap: 2rem;
    }

    .gl-product-detail .gl-product-actions {
        flex-direction: row;
    }

    .gl-product-detail .gl-product-actions .gl-btn-primary,
    .gl-product-detail .gl-product-actions .gl-btn-secondary {
        width: auto;
        flex: 1;
    }

    /* ✅ La descripción larga ocupa las dos columnas */
    .gl-product-longdesc-card {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}


/* ===============================
   BLOQUE COMPARTIR PRODUCTO
   =============================== */

.gl-share {
    margin: 1.2rem 0 1.4rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.gl-share-title {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.gl-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gl-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

/* WhatsApp */
.gl-share-btn--wa {
    background: #22c55e;
    border-color: #16a34a;
    color: #ffffff;
}

/* Facebook */
.gl-share-btn--fb {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
}

/* X */
.gl-share-btn--x {
    background: #0f172a;
    border-color: #020617;
    color: #ffffff;
}

/* Email */
.gl-share-btn--mail {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.gl-share-btn:hover {
    opacity: 0.9;
}

.gl-vacation-banner {
    background: #fff4d6;
    border: 1px solid #facc6b;
    color: #78350f;
    padding: 0.75rem 1rem;
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
}

.gl-vacation-banner strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
