/* VARIABLES GLOBAL - TEMA AZUL OSCURO Y ESMERALDA */
:root {
    /* Colors */
    --bg-dark: #070f1a;
    --bg-alt: #0b1526;
    --primary: #10b981; /* Emerald Green */
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --error-bg: rgba(220, 38, 38, 0.1);
    --error-border: rgba(220, 38, 38, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

strong {
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: var(--text-main);
}

/* LAYOUT & CONTAINERS */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-lg { font-size: 1.1rem; }

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.align-center {
    align-items: center;
}

/* UTILITY CLASES */
.highlight-text {
    color: var(--primary);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.impact-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

/* MICRO ANIMATIONS */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* GLASSMORPHISM */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.box-glow {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

.box-glow::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.box-glow > * { position: relative; z-index: 1; }

.glass-red {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 16px;
    padding: 3rem;
}

/* HERO SECTION */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center 20%, rgba(16, 185, 129, 0.2) 0%, var(--bg-dark) 60%);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.small-text {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* CARDS */
.card {
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* LISTS */
.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.list-danger li { color: #fca5a5; }
.list-success li { color: #f8fafc; }

/* STEPS */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
}

/* ROI CARD */
.roi-card {
    border-color: var(--primary);
}
.roi-result {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: inline-block;
}
.roi-small { font-size: 0.9rem; margin-bottom: 2rem;}
.roi-footer { font-weight: 600; color: #fff; border-top: 1px solid var(--glass-border); padding-top: 1.5rem;}

.callout {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    background: var(--glass-bg);
}

/* ANIMATIONS ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .hero-title { font-size: 2.2rem; }
    .hero { min-height: 80vh; }
    .step-card { flex-direction: column; text-align: left; }
    .step-number { font-size: 2.5rem; }
    .grid-2 { gap: 2.5rem; }
    .glass { padding: 1.5rem; }
    .glass-red { padding: 2rem 1.5rem; }
    .roi-result { font-size: 1.5rem; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 1.8rem; }
    .btn { width: 100%; text-align: center; padding: 1rem 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .lead-text, .impact-text { font-size: 1.1rem; }
    .grid-3, .grid-2, .steps-container {
        grid-template-columns: 1fr;
    }
}
