:root {
    /* Color Palette - Primary (Blue) */
    --color-primary-50: #f0f7ff;
    --color-primary-100: #e0edff;
    --color-primary-200: #bfe0ff;
    --color-primary-300: #99c8ff;
    --color-primary-400: #6da8ff;
    --color-primary-500: #5072d3;
    --color-primary-600: #3456b0;
    --color-primary-700: #0d47a1;
    --color-primary-800: #002171;
    --color-primary-900: #001457;

    /* Color Palette - Secondary (Teal) */
    --color-secondary-50: #f0fdf9;
    --color-secondary-100: #d0fce8;
    --color-secondary-200: #a1f9d9;
    --color-secondary-300: #5df2d6;
    --color-secondary-400: #1ee5c5;
    --color-secondary-500: #00bfa5;
    --color-secondary-600: #008e76;
    --color-secondary-700: #006b59;
    --color-secondary-800: #004d3d;
    --color-secondary-900: #002d24;

    /* Color Palette - Accent (Orange) */
    --color-accent-50: #fff7ec;
    --color-accent-100: #ffe4c7;
    --color-accent-200: #ffd4a0;
    --color-accent-300: #ffb850;
    --color-accent-400: #ff9d2b;
    --color-accent-500: #ff8c00;
    --color-accent-600: #ff6d00;
    --color-accent-700: #e55100;
    --color-accent-800: #cc3900;
    --color-accent-900: #942700;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Neutrals */
    --color-surface: #f8fafc;
    --color-surface-light: #f1f5f9;
    --color-surface-dark: #e2e8f0;
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-subtle: #94a3b8;
    --color-white: #ffffff;
    --color-black: #0f172a;

    /* Semantic Aliases (for convenience) */
    --primary-color: var(--color-primary-700);
    --primary-light: var(--color-primary-500);
    --primary-dark: var(--color-primary-800);
    --secondary-color: var(--color-secondary-500);
    --secondary-light: var(--color-secondary-300);
    --secondary-dark: var(--color-secondary-600);
    --accent-color: var(--color-accent-600);
    --bg-color: var(--color-surface);
    --text-main: var(--color-text-primary);
    --text-muted: var(--color-text-muted);
    --white: var(--color-white);

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-6xl: clamp(3rem, 10vw, 5.5rem);
    --text-5xl: clamp(2rem, 6vw, 3.5rem);
    --text-4xl: clamp(1.75rem, 5vw, 2.5rem);
    --text-3xl: clamp(1.5rem, 4vw, 2rem);
    --text-2xl: clamp(1.25rem, 3vw, 1.5rem);
    --text-xl: 1.25rem;
    --text-lg: 1.125rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;

    --font-weight-400: 400;
    --font-weight-500: 500;
    --font-weight-600: 600;
    --font-weight-700: 700;
    --font-weight-800: 800;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* Spacing (8pt grid) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;
    --space-16: 8rem;
    --space-20: 10rem;
    --space-24: 12rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --border-radius: var(--radius-lg);

    /* Shadows / Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Motion / Animation */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --transition: all var(--duration-normal) var(--ease-out);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations - Initial State */
.opacity-0 {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-up {
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--primary-dark);
}

h1 {
    font-size: var(--text-6xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

h1 span {
    color: var(--secondary-color);
    display: block;
    font-weight: 900;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: 0;
    padding-right: 0;
    z-index: 1000;
    background: rgba(13, 71, 161, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 33, 113, 0.3);
    touch-action: manipulation;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    height: 150px;
    width: auto;
    border-radius: 8px;
    touch-action: manipulation;
}

strong {
    font-weight: 800;
}

/* Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.navbar.scrolled .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 109, 0, 0.4);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.6);
    background: #e66200;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 40%, var(--primary-light) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease-in-out infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 109, 0, 0.12) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.15;
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(1px);
}

.hero-bg {
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--color-primary-800), rgba(0,0,0,.2)),
        radial-gradient(2px 2px at 60px 70px, var(--color-primary-700), rgba(0,0,0,.1)),
        radial-gradient(1px 1px at 50px 50px, var(--color-primary-600), rgba(0,0,0,.2)),
        radial-gradient(1px 1px at 130px 80px, var(--color-primary-700), rgba(0,0,0,.1)),
        radial-gradient(2px 2px at 90px 10px, var(--color-primary-600), rgba(0,0,0,.2)),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 40%, var(--primary-light) 100%);
    background-repeat: repeat;
    background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200% 200%;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 90px 10px, 0% 50%;
    opacity: 0.98;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1,
.hero-text p {
    color: var(--white);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-benefits {
    list-style: none;
    margin-top: 32px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 500;
}

.hero-benefits svg {
    color: var(--secondary-light);
    flex-shrink: 0;
}

/* Glass Panel Form */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 48px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 24px 64px rgba(0,33,113,0.18);
    color: var(--text-main);
    transform: translateY(0);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 32px 80px rgba(0,33,113,0.25);
}

.glass-panel p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 16px;
}

.half {
    flex: 1;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

input,
select {
    width: 100%;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    color: #334155;
    transition: var(--transition);
    outline: none;
    height: 52px;
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-with-prefix {
    display: flex;
    align-items: center;
}

.prefix {
    background: #f1f5f9;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.input-with-prefix input {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    bottom: -18px;
    left: 0;
    opacity: 0;
    transition: var(--transition);
}

input.invalid {
    border-color: #ef4444;
}

input.invalid+.error-msg {
    opacity: 1;
}

.privacy-note {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 191, 165, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 24px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
    background-image:
        radial-gradient(circle at 20% 50%, var(--secondary-color) 0.5px, transparent 0.5px),
        radial-gradient(circle at 60% 80%, var(--secondary-color) 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 20%, var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px, 20px 60px;
    background-attachment: fixed;
    opacity: 0.98;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.benefit-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 20px;
    transition: var(--transition);
    border-top: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.benefit-card.delay-1 {
    animation-delay: 0.2s;
}

.benefit-card.delay-2 {
    animation-delay: 0.4s;
}

.benefit-card.delay-3 {
    animation-delay: 0.6s;
}

.benefit-card:hover {
    background: var(--white);
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 33, 113, 0.15);
    border-top-color: var(--secondary-color);
}

.icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(0, 191, 165, 0.3);
    transition: var(--transition);
}

.benefit-card:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 16px 40px rgba(0, 191, 165, 0.5);
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-content .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-text {
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.875rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(0, 191, 165, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 0 0 8px rgba(0, 191, 165, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0), 0 0 0 20px rgba(0, 191, 165, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        padding-bottom: 10px;
    }

    .logo-img {
        height: 72px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-benefits {
        display: inline-block;
        text-align: left;
    }

    .hero-bg::after {
        top: auto;
        bottom: -100px;
        right: -100px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        padding-bottom: 8px;
    }

    .logo-img {
        height: 64px;
        max-width: calc(100vw - 48px);
        display: block;
        margin: 0 auto;
    }

    .hero {
        padding-top: 100px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .glass-panel {
        padding: 24px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}