/* ==========================================================================
   ACHITO CALCIA — MAGO E ILUSIONISTA
   Hoja de estilos principal (Design Tokens, Reset, Layout y Tipografía)
   ========================================================================== */

:root {
    /* Paleta cromática principal */
    --bg-base: #0B0B0D;
    --bg-surface: #121216;
    --bg-elevated: #17171B;
    --bg-card: #15151A;
    --bg-card-hover: #1C1C22;
    
    /* Tipografía y Textos */
    --text-primary: #F2EBDD;      /* Marfil cálido */
    --text-secondary: #A9A39A;    /* Gris cálido */
    --text-muted: #6C6760;        /* Tono apagado */
    --text-inverse: #0B0B0D;
    
    /* Acentos y Metales */
    --brand-red: #e1040b;         /* Rojo emblemático solicitado */
    --brand-red-bright: #ff2a31;
    --brand-red-dark: #b30208;
    --brand-red-glow: rgba(225, 4, 11, 0.45);
    --brand-red-dim: rgba(225, 4, 11, 0.15);

    --gold: #B9975B;              /* Dourado envelhecido */
    --gold-bright: #D9B87A;
    --gold-dark: #8E6F38;
    --gold-dim: rgba(185, 151, 91, 0.15);
    --gold-glow: rgba(185, 151, 91, 0.25);
    
    --wine: #6E1F2B;              /* Rojo vino terciopelo */
    --wine-light: #e1040b;
    --wine-glow: rgba(225, 4, 11, 0.35);
    
    /* Bordes y Divisiones */
    --border-subtle: rgba(242, 235, 221, 0.07);
    --border-card: rgba(185, 151, 91, 0.22);
    --border-card-hover: rgba(225, 4, 11, 0.55);
    
    /* Tipografía */
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-editorial: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaciado */
    --container-max: 1240px;
    --container-pad: clamp(1rem, 3.5vw, 2.5rem);
    --section-pad-y: clamp(3.5rem, 6vw, 7rem);
    
    /* Efectos & Sombras */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 14px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-card);
    --shadow-card-hover: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 30px -5px var(--brand-red-glow), 0 0 0 1px var(--border-card-hover);
    --shadow-gold: 0 0 24px var(--gold-glow);
    --shadow-red: 0 0 25px var(--brand-red-glow);
    
    /* Transiciones */
    --ease-out-cubic: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s var(--ease-out-cubic);
    --transition-base: 0.35s var(--ease-out-cubic);
    --transition-slow: 0.65s var(--ease-out-cubic);
}

/* --------------------------------------------------------------------------
   Reset & Estilos Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar en rojo vibrante #e1040b */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red) #0B0B0D;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0B0B0D;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 6px;
    border: 2px solid #0B0B0D;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red-bright);
    box-shadow: 0 0 14px var(--brand-red-glow);
}

/* Cursor personalizado con el naipe ♠ en rojo #e1040b inclinado como ponteiro de mouse ↖ */
html, body {
    cursor: url('../assets/cursor-spade-red.svg') 2 2, auto;
}

a, button, [role="button"], input, select, textarea, .service-card, .gallery-item {
    cursor: url('../assets/cursor-spade-pointer.svg') 2 2, pointer;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(225, 4, 11, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(185, 151, 91, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 15% 70%, rgba(225, 4, 11, 0.09) 0%, transparent 45%);
}

/* Ruido sutil y textura de terciopelo */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Enlaces y botones reset */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accesibilidad: Foco visible */
:focus-visible {
    outline: 2px solid var(--brand-red-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    letter-spacing: 0.03em;
}

h2 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    letter-spacing: 0.03em;
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
}

.text-gold {
    color: var(--gold);
}

.text-wine,
.text-red {
    color: var(--brand-red);
}

.text-ivory {
    color: var(--text-primary);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.eyebrow::before,
.eyebrow::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Contenedores y Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
    position: relative;
}

.section-dark {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Naipes Decorativos
   -------------------------------------------------------------------------- */
.card-suits {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--gold);
    user-select: none;
}

.card-suits .suit-red {
    color: var(--brand-red);
}

.suit-symbol {
    transition: transform var(--transition-fast), color var(--transition-fast);
    display: inline-block;
}

.suit-symbol:hover {
    transform: scale(1.25);
    color: var(--brand-red-bright);
}

/* --------------------------------------------------------------------------
   Botones Premium — Con el rojo distintivo #e1040b
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 50px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.8rem 1.35rem;
        font-size: 0.82rem;
        letter-spacing: 0.06em;
        min-height: 46px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: #FFFFFF;
    border: 1px solid var(--brand-red-bright);
    box-shadow: 0 4px 22px rgba(225, 4, 11, 0.42);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-red-bright) 0%, var(--brand-red) 100%);
    box-shadow: 0 8px 30px rgba(225, 4, 11, 0.65);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    background: rgba(23, 23, 27, 0.85);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--brand-red);
    color: var(--brand-red-bright);
    background: rgba(225, 4, 11, 0.08);
    transform: translateY(-2px);
}

.btn-wine {
    background: linear-gradient(135deg, var(--brand-red) 0%, #750005 100%);
    color: #FFFFFF;
    border: 1px solid var(--brand-red-bright);
    box-shadow: 0 4px 22px var(--brand-red-glow);
}

.btn-wine:hover {
    background: linear-gradient(135deg, var(--brand-red-bright) 0%, var(--brand-red) 100%);
    box-shadow: 0 6px 30px rgba(225, 4, 11, 0.7);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Opt-out para preferencias de movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
