/* ===== VALORACIONGRATIS - COMMON STYLES ===== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-ink);
    overflow-x: hidden;
    font-size-adjust: 0.5;
}

/* CSS Variables - Dark Theme */
:root {
    /* User's Color Palette */
    --dark-ink: #171721;
    --purple: #872B97;
    --orange: #FF7130;
    --coral: #FF3C68;
    --hot-red: #EE1E20;
    
    /* Derived Colors */
    --purple-light: #9D4DAE;
    --purple-dark: #681B74;
    --orange-light: #FF8B55;
    --coral-light: #FF5A7D;
    
    /* Text Colors */
    --text-light: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-muted: #808080;
    
    /* Background Colors */
    --bg-primary: #171721;
    --bg-secondary: #1F1F2A;
    --bg-elevated: #252533;
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF7130 0%, #EE1E20 35%, #FF3C68 65%, #872B97 100%);
    --gradient-radial: radial-gradient(circle at 25% 75%, #FF7130 0%, #EE1E20 35%, #FF3C68 60%, #872B97 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 113, 48, 0.1) 0%, rgba(135, 43, 151, 0.1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(135, 43, 151, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(23, 23, 33, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
}

.logo img {
    width: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--text-light);
    background: var(--bg-glass);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    color: var(--text-light) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(135, 43, 151, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-primary);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(135, 43, 151, 0.4);
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0 var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.footer-logo img {
    width: 30px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .header-content {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(23, 23, 33, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 0;
        padding: var(--space-sm) 0;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.mobile-open {
        display: flex;
    }
    
    .nav a {
        padding: var(--space-md) var(--space-lg);
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .nav-cta {
        margin: var(--space-sm) var(--space-lg) !important;
        width: calc(100% - 2 * var(--space-lg)) !important;
        text-align: center !important;
        border-bottom: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-lg);
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .hero-background,
    .gradient-orb {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
