/* ========================================
   ESTILOS COMPARTIDOS SITEWIDE
   Extraído de style2.css: se carga en TODAS las páginas (via components/header.php)
   porque contiene reglas que usan componentes incluidos en todas partes
   (footer.php, promo_marquee.php). style2.css en sí queda intacto y se
   sigue cargando completo solo en las páginas que lo declaran vía $page_css.
   ======================================== */

:root {
    --negro: #000000;
    --blanco: #FFFFFF;
    --hueso: #F5F5DC;
    --dorado: #feb422;
    --gris-oscuro: #333333;
    font-size: 15px;
    --transition: all 0.3s ease;

    --color-fondo-principal: var(--hueso);
    --color-texto-principal: var(--negro);
    --color-titulos: var(--negro);

    /* Industrial palette */
    --font-body: 'Outfit', sans-serif;
    --off-black: #141412;
    --zinc-mid: #898680;
    --linea: #D8D3C9;
    --section-dark: oklch(9% 0.007 80);
    --section-light: oklch(97% 0.005 80);
    --easing-premium: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Reset global (también extraído de style2.css): sin esto, los <select>/<button>
   caen al font-family de sistema del navegador en vez de heredar Outfit del body,
   y los márgenes por defecto del user-agent (h1-h6, p, ul, form controls) rompen
   el espaciado que el resto del CSS de cada página asume en base cero. */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-texto-principal);
    background-color: var(--color-fondo-principal);
    margin: 0;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================== Promo Marquee (medios de pago) ======================================= */
/* Banda deslizable reutilizable — se usa en index.php (shop-banner-section) y tienda.php */
.promo-marquee {
    background: oklch(6% 0.006 80);
    overflow: hidden;
    white-space: nowrap;
}

.promo-marquee-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: promo-marquee-scroll 26s linear infinite;
}

.promo-marquee:hover .promo-marquee-track { animation-play-state: paused; }

.promo-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    font-family: 'Bebas Neue', cursive;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: oklch(80% 0.12 80);
    white-space: nowrap;
}

.promo-marquee-item i { font-size: 0.85rem; }

.promo-marquee-sep {
    color: oklch(80% 0.12 80);
    opacity: 0.4;
}

@keyframes promo-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-marquee-track { animation: none; }
}

/* ======================================================= Footer ==================================================================== */
footer {
    background: var(--section-dark);
    color: var(--hueso);
    border-top: 2px solid var(--dorado);
    padding: 22px 0 14px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.footer-logo-img {
    height: 26px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    margin-right: auto;
}

.footer-links a {
    color: var(--hueso);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 10px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 1px;
    background-color: var(--dorado);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-links a:hover { color: var(--dorado); }
.footer-links a:hover::after { transform: scaleX(1); }

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.social-icons a {
    color: var(--hueso);
    font-size: 1.05rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--dorado);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 245, 220, 0.1);
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(245, 245, 220, 0.55);
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--dorado); }
.footer-legal .footer-sep { margin: 0 8px; opacity: 0.5; }

.copyright { white-space: nowrap; }

@media (max-width: 768px) {
    .footer-top { justify-content: center; text-align: center; padding-bottom: 14px; }
    .footer-links { margin-right: 0; justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
}
