/* --- CSS Reset & Variables --- */
:root {
    /* Colors - Elegant & Trustworthy Palette */
    --clr-primary: #144734; /* Dark Green */
    --clr-primary-light: #1A5C43;
    --clr-secondary: #e62929; /* Red Accent */
    --clr-secondary-hover: #cc2424;
    --clr-bg: #FAFAFB;
    --clr-bg-alt: #FFFFFF;
    --clr-text: #334155;
    --clr-text-light: #64748B;
    --clr-heading: #0F172A;
    --clr-border: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 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.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

.center {
    text-align: center;
}

/* --- Typography --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    color: var(--clr-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--clr-secondary);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

.large-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-heading);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    height: 78px;
    width: auto;
    object-fit: contain;
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(20, 71, 52, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    color: var(--clr-primary);
    animation: float 3s ease-in-out infinite;
}

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

/* --- Sections Common --- */
section {
    padding: 6rem 0;
}

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

.bg-accent {
    background-color: var(--clr-primary);
    color: white;
}

.bg-accent h2, .bg-accent p {
    color: white;
}

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

.benefit-card {
    background: var(--clr-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--clr-border);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.benefit-card .icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.benefit-card .icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* --- Lifestyle --- */
.lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- Video Slider --- */
.video-slider-container {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    display: flex;
    align-items: center;
}

.video-slider {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-behavior: smooth;
}

.video-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.video-slide {
    flex: 1;
    min-width: 0;
    aspect-ratio: 9 / 16;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
    scroll-snap-align: center;
}

.video-slide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.slider-arrow {
    display: none; /* Hidden on desktop */
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 1000px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 3rem;
    align-items: center;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-header h2 {
    margin-bottom: 0;
}

.faq-eagle-mobile {
    display: none;
}

.faq-image-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-image-desktop img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.accordion {
    margin-top: 0;
}

.accordion-item {
    border-bottom: 1px solid var(--clr-border);
}

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

.icon-plus {
    font-size: 1.5rem;
    color: var(--clr-primary);
    transition: var(--transition);
}

.accordion-item.active .icon-plus {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--clr-text);
}

/* --- CTA & Form --- */
.cta-section {
    background-color: var(--clr-bg-alt);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 41, 41, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.cta-text {
    position: relative;
}

.cta-eagle-wrapper {
    text-align: right;
    margin-bottom: -1rem;
    margin-right: -20px;
}

.cta-eagle {
    width: 250px;
    height: auto;
    display: inline-block;
    pointer-events: none;
}

.glass-card-dark {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--clr-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(20, 71, 52, 0.1);
}

/* Form Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Footer --- */
.footer {
    background-color: var(--clr-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-seals {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.footer-seals img {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 1;
    min-width: 0;
}

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

.footer-links a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Animations & Utilities --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-grid,
    .lifestyle-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-badge {
        bottom: 20px;
        left: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-image-desktop {
        display: none;
    }
    
    .faq-header {
        justify-content: center;
    }
    
    .faq-eagle-mobile {
        display: block;
        width: 60px;
        height: auto;
    }

    /* Video Slider Mobile/Tablet */
    .video-slide {
        flex: 0 0 60%;
    }
    
    .video-slider {
        padding: 0 calc(20% - 0.75rem);
    }

    .slider-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        color: var(--clr-primary);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }
    
    .slider-arrow:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
    }

    .prev-arrow {
        left: -10px;
    }

    .next-arrow {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 4rem 0;
    }
    
    .cta-eagle-wrapper {
        margin-right: 0;
    }

    .cta-eagle {
        width: 150px;
    }
    
    .header {
        padding: 0.75rem 0;
    }

    .logo {
        height: 58px;
    }

    .header-cta {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        text-align: center;
        line-height: 1.2;
    }

    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .glass-card-dark {
        padding: 2rem;
    }

    .footer-seals {
        gap: 0.5rem;
    }

    .footer-seals img {
        height: 28px;
    }

    /* Video Slider Mobile */
    .video-slide {
        flex: 0 0 75%;
    }
    
    .video-slider {
        padding: 0 calc(12.5% - 0.75rem);
    }
    
    .prev-arrow {
        left: 0;
    }

    .next-arrow {
        right: 0;
    }
}

/* --- Agenda: reservas Nursery Campus (Calendly) --- */
.agenda {
    background-color: var(--clr-bg-alt);
    scroll-margin-top: 80px; /* cabecera sticky */
}

.agenda-header {
    max-width: 720px;
    margin: 0 auto;
}

.agenda-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.agenda-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--clr-text-light);
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.agenda-card {
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.agenda-card .num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-secondary);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.agenda-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--clr-heading);
    margin-bottom: 0;
}

.agenda-card p {
    color: var(--clr-text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

.agenda-card a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-primary);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    transition: var(--transition);
}

.agenda-card a:hover {
    color: var(--clr-secondary);
}

@media (max-width: 992px) {
    .agenda-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .agenda-card {
        padding: 2rem 1.5rem;
    }
}
