/* Base Variables */
:root {
    --color-bg: #f4f6f5;
    --color-text: #2b2d2c;
    --color-primary: #1b4332;
    --color-secondary: #40916c;
    --color-accent: #52b788;
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.4);
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

.accent-text { color: var(--color-secondary); font-style: italic; }

p { margin-bottom: 1rem; font-size: 1.1rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Layout & Containers */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.d-none { display: none !important; }
.w-100 { width: 100%; }
.offset-section { margin-top: 8rem; margin-bottom: 8rem; }

/* Unique Element: Animated Gradient Spheres */
.bg-spheres {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #e8eceb;
}
.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}
.sphere-1 {
    width: 600px; height: 600px;
    background: #d8f3dc;
    top: -10%; left: -10%;
}
.sphere-2 {
    width: 500px; height: 500px;
    background: #b7e4c7;
    bottom: -20%; right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 3rem;
}

.glass-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(244, 246, 245, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Buttons */
button, .btn-primary, .btn-outline {
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.8rem 2rem;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Header & Nav */
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }
.logo span { font-size: 1rem; font-family: var(--font-primary); font-weight: 300; letter-spacing: 2px; }
.logo i { color: var(--color-secondary); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-weight: 600; font-size: 1rem; }
.main-nav a:hover:not(.btn-outline) { color: var(--color-secondary); }

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
    padding-top: 100px;
}
.hero-text { flex: 1.2; }
.hero-image { flex: 1; position: relative; }
.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 600px;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Split Layouts (Features & About) */
.split-layout { display: flex; align-items: center; gap: 4rem; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-img { flex: 1; }
.split-content { flex: 1; }
.split-img img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-soft); height: 500px; object-fit: cover;}
.custom-bullets { list-style: none; margin-top: 2rem; }
.custom-bullets li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; font-size: 1.1rem;}
.custom-bullets i { font-size: 1.5rem; color: var(--color-secondary); margin-top: 0.2rem; }

/* Stats / Methodology */
.stats-section { padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.stat-card { padding: 2.5rem; }
.stat-number { font-size: 1.2rem; font-weight: 700; color: var(--color-secondary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px;}

/* Form Section */
.form-section { padding: 4rem 0; display: flex; justify-content: center; }
.form-container { max-width: 800px; width: 100%; }
.form-title { margin-bottom: 3rem; }
.form-row { display: flex; gap: 1.5rem; }
.input-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.input-group label { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.input-group input {
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}
.input-group input:focus { outline: none; border-color: var(--color-secondary); background: #fff; }
.checkbox-group { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 2rem; font-size: 0.9rem; }
.checkbox-group input { margin-top: 0.3rem; width: 18px; height: 18px; cursor: pointer; }
.checkbox-group a { text-decoration: underline; color: var(--color-primary); font-weight: 600; }
.success-box {
    background: #d8f3dc;
    color: #1b4332;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* FAQ */
.faq-section { max-width: 900px; margin-bottom: 6rem; }
.accordion { margin-top: 3rem; padding: 2rem; }
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
    width: 100%;
    background: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-body p { padding-bottom: 1.5rem; color: #555; }

/* Footer */
footer { background: var(--color-primary); color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem;}
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #a3b18a; margin-top: 1rem; max-width: 300px; }
.footer-links h4 { font-family: var(--font-primary); color: #fff; margin-bottom: 1rem; }
.footer-links a { display: block; color: #a3b18a; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Cookie Banner */
.glass-banner {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 800px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center;
}
.cookie-actions { display: flex; gap: 1rem; align-items: center; }

/* Legal Pages Styling */
.legal-page { padding: 120px 0 60px; background: #fff; }
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h1, .legal-content h2, .legal-content h3 { color: var(--color-primary); margin-top: 2rem;}
.legal-content p, .legal-content li { color: #444; margin-bottom: 1rem; }
.legal-content ul { margin-left: 2rem; margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 120px;}
    .split-layout, .split-layout.reverse { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .main-nav { display: none; } /* Idealmente un menú hamburguesa, oculto por simplicidad en diseño estricto */
    .footer-grid { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .glass-card { padding: 2rem; }
}