/*
 * distrom.css — Hoja de estilos compartida · DISTROMASTERS
 * ─────────────────────────────────────────────────────────
 * Contiene: tokens, reset, tipografía, fondo animado,
 * header/nav, back-button, footer, keyframes globales,
 * accesibilidad y componentes reutilizables.
 *
 * Para estilos específicos de cada página, cada HTML
 * mantiene su propio bloque <style> interno.
 */

/* ══════════════════════════════════════════════════════════
   1. DESIGN TOKENS / CSS VARIABLES
══════════════════════════════════════════════════════════ */
:root {
    /* Brand colors */
    --primary: #FF0030;
    --primary-dark: #CC0026;
    --primary-light: #FF3355;
    --primary-glow: rgba(255, 0, 48, 0.5);
    --secondary: #00D4FF;
    --secondary-dark: #00A8CC;
    --accent: #FFD700;

    /* Dark palette */
    --dark: #050505;
    --dark-elevated: #0A0A0A;
    --dark-card: #111111;
    --dark-border: rgba(255, 255, 255, 0.06);

    /* Text */
    --light-gray: #9CA3AF;
    --white: #FFFFFF;

    /* Status */
    --success: #10B981;
    --success-color: #10B981;
    --error: #EF4444;
    --error-color: #EF4444;
    --warning-color: #F59E0B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF0030 0%, #FF3366 50%, #FF0030 100%);
    --gradient-secondary: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    --gradient-dark: linear-gradient(180deg, #050505 0%, #0A0A0A 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(255, 0, 48, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
══════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ══════════════════════════════════════════════════════════
   4. ANIMATED BACKGROUND
══════════════════════════════════════════════════════════ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 0, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 48, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* ══════════════════════════════════════════════════════════
   5. GLOBAL KEYFRAMES
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

@keyframes rocketPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ══════════════════════════════════════════════════════════
   6. HEADER — shared across all inner pages
══════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--dark-border);
    z-index: 1000;
    padding: 1rem 24px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 0, 48, 0.25));
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 0, 48, 0.25));
}

/* Back / CTA button in header */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: rgba(255, 0, 48, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 0, 48, 0.3);
    transition: var(--transition);
}

.back-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 48, 0.4);
}

/* CMS Login button (index.html) */
.cms-login-button {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: rgba(255, 0, 48, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 0, 48, 0.3);
}

.cms-login-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 48, 0.4);
}

@media (max-width: 480px) {
    .cms-login-button {
        position: absolute;
        padding: 8px 12px;
        font-size: 0.72rem;
        top: 12px;
        right: 12px;
        gap: 0.35rem;
    }

    .cms-login-button span {
        display: inline;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
}

/* ══════════════════════════════════════════════════════════
   7. PAGE HERO — cabecera compartida entre subpáginas
══════════════════════════════════════════════════════════ */
.main-content {
    position: relative;
    z-index: 1;
}

.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 0, 48, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.page-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--light-gray);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.page-subtitle strong {
    color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   8. SECTION COMPONENTS (compartidos entre páginas)
══════════════════════════════════════════════════════════ */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Badge (chips) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.badge i {
    animation: rocketPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   9. FOOTER
══════════════════════════════════════════════════════════ */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(156, 163, 175, 0.5);
    margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════
   10. ACCESSIBILITY
══════════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   11. RESPONSIVE UTILITIES
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .header-content {
        gap: 1rem;
    }

    .page-hero {
        padding: 120px 20px 60px;
    }
}

@media (max-width: 480px) {
    .back-button span {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   12. BLOG & ARTICLES
   ══════════════════════════════════════════════════════════ */
.post-content p {
    margin-bottom: 1.7rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-top: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 12px;
}

.post-content h3 {
    font-size: 1.45rem;
}

.post-content h4 {
    font-size: 1.2rem;
}

.post-content strong {
    color: var(--white);
    font-weight: 600;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--secondary);
}

.post-content ul,
.post-content ol {
    margin-top: 0.6rem;
    margin-bottom: 1.7rem;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.88);
}

.post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.85;
}

.post-content blockquote {
    background: rgba(255, 0, 48, 0.04);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.post-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--dark-border);
}

.post-content th {
    background: rgba(255, 0, 48, 0.05);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--white);
}

.post-content tr:last-child td {
    border-bottom: none;
}