/* ======================================================
   RESET Y BASE (GLOBAL)
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ---- Colores de fondo ---- */
    --bg-primary: #0b0b0b;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-light: #121212;
    --bg-lighter: #1e1e1e;

    /* ---- Colores de texto ---- */
    --text-primary: #ffffff; 
    --text-secondary: #a0a0a0;
    --text-tertiary: #6c6c6c; 
    --text-light: #b0b0b0; 
    --text-lighter: #888888; 

    /* ---- Colores de acento ---- */
    --accent: #ffffff;
    --accent-color: #ff8383;
    --accent-glow: rgba(255, 255, 255, 0.08);

    --primary-color: #783a3a;
    --primary-light: #884a4a;
    --primary-dark: #682a2a;

    /* ---- Bordes y sombras ---- */
    --border-color: #222222;  
    --border-light: #333333;  
    --shadow-color: rgba(0, 0, 0, 0.7); 
    --shadow-lg: 0 8px 16px var(--shadow-color);
    --glow: 0 0 15px rgba(120, 58, 58, 0.5);

    /* ---- Tipografía ---- */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 

    /* ---- Espaciado y layout ---- */
    --border-radius: 12px; 
    --container-width: 1200px;
    --section-spacing: 80px; 

    /* ---- Transiciones ---- */
    --transition-smooth: all 0.3s ease; 
}

html {
    scroll-behavior: smooth;
}

html,
body {
    touch-action: manipulation;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    perspective: 1000px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(58, 90, 120, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 25%),
        linear-gradient(45deg, rgba(10, 10, 10, 0.9), rgba(18, 18, 18, 0.9));
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, transparent 20%, rgba(58, 90, 120, 0.03) 21%, transparent 22%),
        radial-gradient(circle at 80% 70%, transparent 20%, rgba(255, 107, 107, 0.03) 21%, transparent 22%);
    z-index: -1;
    pointer-events: none;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

img, i, select, .checkbox-label, #privacy-label, video {
    user-select: none;
}

textarea {
    resize: none;
}

/* Barra de scroll personalizada */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-elevated);
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-elevated);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 8px;
    border: 2px solid var(--bg-elevated);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
    opacity: 0.85;
}

/* ======================================================
   EFECTOS GLOBALES
   ====================================================== */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.4;
    }
}

/* Animaciones de entrada 3D */
.fade-in {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform-style: preserve-3d;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Parallax layers */
.parallax-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(58, 90, 120, 0.1) 0%, transparent 70%);
    animation: floatLayer 20s infinite linear;
}

.layer-2 {
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    animation: floatLayer 25s infinite linear reverse;
}

.layer-3 {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 90, 120, 0.05) 0%, transparent 70%);
    animation: floatLayer 30s infinite linear;
}

@keyframes floatLayer {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}