/* ============================================================
   BALSAMOA — Global.CSS
   Variables, reset, header, footer, barra menú celular
   Importado por todos los archivos HTML
   ============================================================ */

/* @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ==============================
   RESET & VARIABLES
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #2C4A5E;
    --azul-oscuro: #1e3345;
    --azul-claro: #3d607a;
    --terracota: #C4703A;
    --terracota-claro: #d4834e;
    --crema: #F5F0E8;
    --crema-oscuro: #E8E0CF;
    --negro: #1A1A1A;
    --gris: #6B6B6B;
    --gris-claro: #A0A0A0;
    --blanco: #FFFFFF;

    --gris-fondo: #E5E5E5;   
    --negro-puro: #000000;   

    /* --fuente-display: 'Playfair Display', Georgia, serif; */
    --fuente-display: 'Josefin Sans', system-ui, sans-serif;
    --fuente-cuerpo: 'DM Sans', system-ui, sans-serif;

    --radio: 4px;
    --radio-lg: 14px;
    --sombra: 0 2px 16px rgba(44, 74, 94, 0.10);
    --sombra-hover: 0 10px 36px rgba(44, 74, 94, 0.18);

    --transition: 0.28s ease;

    --max-ancho: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--negro);
    font-family: var(--fuente-cuerpo);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ==============================
   BARRA DE ANUNCIO
================================ */
.anuncioBarra {
    background-color: var(--negro-puro);
    color: var(--crema);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.09em;
    padding: 9px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.anuncioBarra strong {
    color: var(--terracota-claro);
}

.anuncioContenido {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    animation: deslizarAnuncio 25s linear infinite;
    flex-shrink: 0;
}

/* Animación infinita */
@keyframes deslizarAnuncio {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.anuncioBarra strong {
    color: var(--terracota-claro);
}

/* ==============================
   HEADER REDISEÑADO
================================ */
.encabezadoPrincipal {
    width: 100%;
    background-color: var(--gris-fondo);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.contenidoEncPag {
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    flex-direction: row; /* Coloca logo y menú en la misma línea */
    align-items: center;
    justify-content: space-between; /* Empuja el logo a la izquierda y menú a la derecha */
}

.headerTop {
    display: flex;
    align-items: center; 
}

.logoLink {
    display: flex;
    flex-direction: row; /* Pone el ícono al lado de la palabra Balsamoa */
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logoLink img {
    width: 40px; /* Ícono un poco más chico para que balancee bien */
    height: auto;
}

.logoTexto {
    font-family: var(--fuente-display);
    font-size: 18px;
    font-weight: bold;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(2.5px);
}

#id_menuNav {
    display: flex;
    justify-content: flex-end; /* Ancla los links a la derecha */
}

#id_menuNav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--negro-puro);
    letter-spacing: 0.05em;
    padding: 6px 6px;
    transition: color var(--transition);
}

#id_menuNav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

#id_menuNav a:hover {
    color: var(--terracota);
}
/* ==============================
   MENÚ HAMBURGUESA (mobile)
================================ */
.menuBtn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 102;
    position: relative;
    flex-direction: column;
    gap: 5px;
}

.menuBtn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--negro-puro);
    transition: var(--transition);
    transform-origin: center;
}

.menuBtn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menuBtn.active span:nth-child(2) {
    opacity: 0;
}

.menuBtn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menuOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.35);
    z-index: 98;
    backdrop-filter: blur(2px);
}

.menuOverlay.active {
    display: block;
}

/* ==============================
   ENCABEZADO DE PÁGINA (Unificado)
================================ */
.paginaHeader {
    background-color: var(--azul);
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;

    
    width: 100%;
    max-width: var(--max-ancho); 
    margin: 32px auto 0;
    border-radius: var(--radio-lg);
}

.paginaHeader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(196, 112, 58, 0.15) 0%, transparent 55%);
    pointer-events: none;
}

.paginaHeader .seccionEtiqueta {
    color: var(--terracota-claro);
    margin-bottom: 10px;
    position: relative;
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.paginaHeader h1 {
    font-family: var(--fuente-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    color: var(--crema);
    line-height: 1.1;
    padding: 0;
    text-align: center;
    position: relative;
}

/* ==============================
   MAIN
================================ */

main {
    flex: 1;
}

/* ==============================
   FOOTER
================================ */
.piePagina {
    width: 100%;
    background: var(--gris-fondo);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 24px;
    flex-shrink: 0;
}

.footerDivider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--terracota) 50%, transparent 100%);
    margin-bottom: 32px;
    max-width: var(--max-ancho);
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
    opacity: 0.6;
}

.contenidoPiePag {
    max-width: var(--max-ancho);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    font-style: normal;
    flex-wrap: wrap;
}

.footerBrand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footerLogo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footerNombre {
    font-size: 14px;
    font-weight: 600;
    color: var(--negro-puro);
    letter-spacing: 0.05em;
}

.footerCopyright {
    font-size: 12px;
    color: var(--negro-puro);
    margin-left: 4px;
}

.footerLinks {
    display: flex;
    gap: 24px;
}

.footerLinks a {
    font-size: 13px;
    text-decoration: none;
    color: var(--negro-puro);
    transition: color var(--transition);
}

.footerLinks a:hover {
    color: var(--terracota-claro);
}

.footerSociales {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.socialPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    text-decoration: none;
    color: var(--negro-puro);
    transition: all var(--transition);
}

.socialPill img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0);
}

.socialPill:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--negro-puro);
    color: var(--negro-puro);
    transform: translateY(-2px);
}

.socialPill.instagram:hover {
    color: #ff85a1;
    border-color: #ff85a1;
}

.socialPill.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.socialPill.ubicacion:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* ==============================
   UTILIDADES COMPARTIDAS
================================ */
.seccionEtiqueta {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracota);
    margin-bottom: 8px;
}

.seccionEtiqueta.claro {
    color: rgba(245, 240, 232, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   BOTÓN WHATSAPP FLOTANTE
================================ */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-flotante img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* ── Badges de disponibilidad ── */
.cardBadge,
.galeriaBadge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
}

.badge--disponible {
    background-color: var(--terracota);
    color: var(--blanco);
}

.badge--ultimas {
    background-color: rgba(196, 112, 58, 0.9);
    color: #FFFFFF;
}

.badge--agotado {
    background-color: rgba(26, 26, 26, 0.75);
    color: #A0A0A0;
}

/* ── Círculos de colores ── */
.cardColores {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 0;
}

.colorCirculo {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.colorCirculo--lg {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

/* ── Mensaje vacío / sin resultados ── */
.sinResultados {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 24px;
    text-align: center;
    color: var(--gris);
}

.sinResultadosIcono {
    font-size: 32px;
    color: var(--terracota-claro);
    opacity: 0.5;
}

.sinResultados p {
    font-size: 15px;
    max-width: 360px;
    line-height: 1.6;
}

.btnLimpiarFiltros {
    padding: 10px 24px;
    background-color: var(--azul);
    color: var(--crema);
    border: none;
    border-radius: var(--radio);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.btnLimpiarFiltros:hover {
    background-color: var(--azul-oscuro);
}

.imgWrap,
.cardRelImgWrap {
    position: relative;
}

/* ==============================
   GRILLA DE PRODUCTOS (UNIFICADA)
================================ */
/* .productosGrilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px 24px;
    justify-content: center;
} */

.productosGrilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: center;
    gap: 32px 24px;
}

.productosGrilla article {
    background-color: transparent;
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.productosGrilla article:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.productosGrilla a {
    color: var(--negro-puro);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.productosGrilla .imgWrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--gris-fondo);
    border-radius: var(--radio-lg);
}

.productosGrilla a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.productosGrilla article:hover img {
    transform: scale(1.03);
}

.productosGrilla .cardInfo {
    padding: 10px 4px 4px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.productosGrilla a h3 {
    font-family: var(--fuente-display);
    font-size: 16.5px;
    font-weight: 500;
    text-transform: none;
    color: var(--negro-puro);
    margin: 0;
    line-height: 1.35;
}

.productosGrilla a p {
    font-size: 16px;
    font-weight: 700;
    color: var(--terracota);
    margin: 0;
}

/* ==============================
   TALLES EN TARJETAS
================================ */
.cardTalles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.talleChip {
    font-size: 11px;
    font-weight: 600;
    color: var(--negro-puro);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    padding: 2px 8px;
    background-color: transparent;
}

/* ==============================
   RESPONSIVE GLOBAL
================================ */
@media (max-width: 900px) {
    .footerContenido {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 52px 32px 40px;
    }

    .footerLogo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .anuncioBarra {
        font-size: 10.5px;
        letter-spacing: 0.06em;
    }

    .contenidoEncPag {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        padding: 0 20px;
    }

    .headerTop {
        width: auto;
    }

    .logoLink {
        flex-direction: row;
        gap: 10px;
    }

    .logoLink img {
        width: 35px;
    }

    .logoTexto {
        font-size: 16px;
    }

    .menuBtn {
        display: flex;
    }

    #id_menuNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        display: block;
        max-width: 290px;
        height: 100vh;
        background-color: var(--blanco);
        padding-top: 88px;
        transition: right 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 99;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        border-left: 1px solid var(--crema-oscuro);
        overflow-y: auto;
    }

    #id_menuNav.active {
        right: 0;
    }

    #id_menuNav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    #id_menuNav li {
        border-bottom: 1px solid var(--crema-oscuro);
    }

    #id_menuNav a {
        display: block;
        padding: 17px 28px;
        font-size: 17px;
        border-radius: 0;
    }

    .paginaHeader {
        width: auto;
        padding: 40px 20px 36px;
        margin: 20px 20px 0;
    }

    .productosGrilla {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contenidoPiePag {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footerLinks,
    .footerSociales,
    .footerBrand {
        justify-content: center;
    }

    .whatsapp-flotante {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-flotante img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .productosGrilla {
        grid-template-columns: 1fr;
    }
}