/* Premium System Font Stack - Avoiding CORS issues with WebStorm's internal headers */

:root {
    /* Sophisticated Dark Palette — acento verde */
    --clr-bg: #030f0a;
    --clr-bg-alt: #0a1f14;
    --clr-primary: #22c55e;
    --clr-primary-glow: rgba(34, 197, 94, 0.45);
    --clr-accent: #4ade80;
    --clr-primary-dark: #15803d;
    --clr-cta-end: #14532d;
    --clr-text: #ffffff;
    --clr-text-muted: #d1fae5;
    --clr-glass: rgba(10, 31, 20, 0.82);
    --clr-border: rgba(255, 255, 255, 0.12);
    
    /* Font Stacks */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Sizing */
    --container-max: 1200px;
    --section-gap: 120px;
    
    /* Shadows */
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glow-text: 0 0 24px rgba(34, 197, 94, 0.35);
}

.section-padding {
    padding: var(--section-gap) 0;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Scale */
h1 { font-size: clamp(3rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
p { font-size: 1.1rem; }

/* Enhanced Navigation (Island Style) */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 95%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper {
    background: var(--clr-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-premium);
}

/* Marca: logo raster sobre barra de cristal oscura */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 253, 244, 0.96) 45%, rgba(236, 252, 203, 0.94) 100%);
    border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.4);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 28px rgba(34, 197, 94, 0.12);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.brand-lockup:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.65);
    box-shadow:
        0 14px 40px rgba(34, 197, 94, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.brand-lockup__img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    object-position: center;
}

.brand-lockup--footer {
    padding: 0.55rem 1rem;
    border-radius: 18px;
}

.brand-lockup--footer .brand-lockup__img {
    height: 58px;
    max-width: 190px;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Hero Section (Re-imagined) */
.hero {
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(circle at 78% 18%, rgba(34, 197, 94, 0.14) 0%, transparent 42%),
                radial-gradient(circle at 12% 82%, rgba(20, 83, 45, 0.12) 0%, transparent 45%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(20%) contrast(110%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--clr-text);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    color: var(--clr-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 500;
}

/* Service Grid (Premium Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 60px 0;
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--clr-border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--clr-primary);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4);
}

.card svg {
    width: 54px;
    height: 54px;
    color: var(--clr-primary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--clr-primary-glow));
}

.card h3 { margin-bottom: 1rem; color: var(--clr-text); }
.card p { color: var(--clr-text-muted); font-size: 0.95rem; }

/* Buttons */
.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 10px 20px -5px var(--clr-primary-glow);
}

.btn-primary:hover {
    background: var(--clr-accent);
    color: #022c14;
    transform: scale(1.05);
    box-shadow: 0 15px 30px -5px var(--clr-primary-glow);
}

/* Animations with Progressive Enhancement */
.reveal {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

body.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative Backgrounds */
.section-accent {
    position: relative;
    background: var(--clr-bg);
}

.section-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

/* Footer (Legal & Links) */
footer {
    padding: 100px 0 40px;
    background: radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--clr-border);
}

/* Bloques de contenido ampliado */
.section-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 2rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: var(--clr-accent);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--clr-text-muted);
    font-size: 1rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--clr-primary);
    box-shadow: 0 0 10px var(--clr-primary-glow);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
}

.stat-strip strong {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
}

.stat-strip span {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cta-panel {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-cta-end) 100%);
    border-radius: 48px;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.cta-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-panel .cta-inner {
    position: relative;
    z-index: 1;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.8rem; }
    .container { padding: 0 1.5rem; }
    .brand-lockup {
        padding: 0.35rem 0.65rem;
        border-radius: 14px;
    }
    .brand-lockup__img {
        height: 40px;
        max-width: 142px;
    }
    .brand-lockup--footer .brand-lockup__img {
        height: 48px;
        max-width: 155px;
    }
}
