/* ===================================================
   GOLDEN DAWN - BASE LAYER (base.css)
   Variables, Reset, Tipografía y Elementos Base
   =================================================== */

:root {
    --ink: #171717;
    --paper: #f2eee5;
    --paper-warm: #eae5d8;
    --paper-card: #fbf9f4;
    --surface: #ffffff;
    --surface-card: #ffffff;
    --bg: #f2eee5;
    --gold: #e4b84c;
    --gold-light: #fdf5df;
    --gold-dark: #8c6a15;
    --red: #b84632;
    --red-hover: #9e3927;
    --green: #1b5e20;
    --green-bg: #e8f5e9;
    --muted: #77736b;
    --muted-light: #a39e94;
    --line: rgba(23, 23, 23, .16);
    --line-strong: rgba(23, 23, 23, .3);
    --display: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: clip;
}

/* Accesibilidad moderna para foco */
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

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

h1, h2, h3, h4 {
    font-family: var(--display);
    margin: 0;
}

em {
    color: var(--red);
    font-style: normal;
}

img, svg {
    max-width: 100%;
}

/* Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float-gentle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(228, 184, 76, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(228, 184, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 184, 76, 0); }
}

.anim-float {
    animation: float-gentle 4s ease-in-out infinite;
}

.anim-pulse {
    animation: pulse-glow 2s infinite;
}

/* Micro-interactions */
.product-card, .review-card, .loyalty-search-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card:hover, .review-card:hover, .loyalty-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(23, 23, 23, 0.08);
}
