/* ==========================================================================
   RR STORE 316 - CORE DESIGN SYSTEM & BASE STYLES
   Colores: Blanco Puro, Slate Navy (#090e17 / #0f172a) y Azul Zafiro (#0066ff / #2563eb)
   Tipografías: Plus Jakarta Sans & Outfit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- Paleta Primaria: Negro Azulado & Slate Navy --- */
    --color-dark-900: #060a11;
    --color-dark-800: #090e17; /* Negro azulado principal */
    --color-dark-700: #0f172a; /* Slate midnight */
    --color-dark-600: #162238; /* Navy card surface */
    --color-dark-500: #1e2e4a; /* Border / highlight dark */
    --color-dark-400: #334767;

    /* --- Paleta de Acento: Azul Zafiro & Cyan Vibrante --- */
    --color-primary: #0066ff;        /* Azul Zafiro Eléctrico principal */
    --color-primary-hover: #0052cc;  /* Azul oscuro para hover */
    --color-primary-light: #eff6ff;  /* Fondo suave azul */
    --color-primary-glow: rgba(0, 102, 255, 0.28);
    --color-primary-gradient: linear-gradient(135deg, #0070f3 0%, #0052cc 100%);
    --color-primary-subtle: rgba(0, 102, 255, 0.12);
    --color-accent-cyan: #38bdf8;

    /* --- Paleta Neutra: Blanco Puro & Superficies Claras --- */
    --color-white: #ffffff;
    --color-bg-light: #f8fafc;
    --color-surface-light: #ffffff;
    --color-surface-card: #ffffff;
    --color-border-light: #e2e8f0;
    --color-border-hover: #cbd5e1;

    /* --- Textos & Contrastes --- */
    --color-text-dark: #090e17;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-text-white: #f8fafc;

    /* --- Estados & Modalidades --- */
    --color-wholesale-blue: #0284c7; /* Azul Mayorista / B2B */
    --color-retail-indigo: #4f46e5;   /* Indigo Minorista / B2C */
    --color-success: #10b981;        /* In Stock / Success */
    --color-success-bg: #ecfdf5;
    --color-danger: #ef4444;

    /* --- Sombras & Efectos --- */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.14), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-glow-blue: 0 8px 25px rgba(0, 102, 255, 0.35);
    --shadow-glow-orange: 0 8px 25px rgba(0, 102, 255, 0.35);
    --shadow-glow-dark: 0 15px 35px rgba(9, 14, 23, 0.3);

    /* --- Bordes Redondeados --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* --- Tipografías --- */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* --- Transiciones --- */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   TIPOGRAFÍA GLOBAL
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
    color: var(--color-text-body);
    font-size: 0.98rem;
}

.highlight-orange,
.highlight-blue,
.highlight-accent {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.gradient-text-orange,
.gradient-text-blue,
.gradient-text-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-dark {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-tag.dark-tag {
    background: rgba(0, 102, 255, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-dark-800);
    color: var(--color-white);
    border: 1px solid var(--color-dark-500);
}

.btn-secondary:hover {
    background: var(--color-dark-700);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark-800);
    border: 1.5px solid var(--color-dark-800);
}

.btn-outline:hover {
    background: var(--color-dark-800);
    color: var(--color-white);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-dark-800);
    border-color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.08rem;
    border-radius: var(--radius-md);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #20BA59;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================================================
   SCROLLBAR & SELECCIÓN
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   KEYFRAMES & ANIMACIONES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-float {
    animation: floatBadge 3.5s ease-in-out infinite;
}
