/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Color Palette - Premium Light Theme (White & Green) */
    --bg-main: #F7F7F7;       
    --bg-secondary: #FFFFFF;  
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.05);
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    
    --accent-primary: #002060;   /* Navy Blue */
    --accent-hover: #001540;     /* Darker Navy */
    --accent-secondary: #00C2CB; /* Cyan / Aqua */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(0, 32, 96, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-20 { margin-top: 5rem; }
.w-100 { width: 100%; }

.highlight {
    color: var(--accent-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Glassmorphism Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 32, 96, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 32, 96, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-primary);
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background-color: rgba(0, 32, 96, 0.1);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-outline) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:not(.btn-outline):hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

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

/* Background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,32,96,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 32, 96, 0.1);
    color: var(--accent-hover);
    border: 1px solid rgba(0, 32, 96, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-image-wrapper {
    position: relative;
}

.image-card {
    padding: 10px;
    position: relative;
    z-index: 2;
}

.hero-img {
    border-radius: 12px;
    width: 100%;
}

.floating-badge {
    position: absolute;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-badge.top-right {
    top: 20px;
    right: -20px;
}

.floating-badge .icon {
    font-size: 2rem;
}

.floating-badge .badge-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.floating-badge .badge-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   SECTIONS
   ========================================= */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

/* Beneficios Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2.5rem 2rem;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-glow);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 32, 96, 0.1);
    color: var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Impacto Section */
.impact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-row.reverse .impact-content {
    order: -1;
}

.rounded-img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.impact-image {
    position: relative;
}

.deco-shape {
    position: absolute;
    border-radius: 20px;
    z-index: 1;
}

.shape-1 {
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
}

.shape-2 {
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 96, 0.1);
}

.impact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.impact-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Confianza */
.big-card {
    overflow: hidden;
}

.card-image-header img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-body {
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.card-body h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Contacto */
.contact-container {
    max-width: 600px;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-form {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    background: var(--bg-main);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS (Intersection Observer)
   ========================================= */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-container,
    .impact-row,
    .impact-row.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .impact-row.reverse .impact-content {
        order: 0;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .floating-badge.top-right {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
