:root {
    --primary: #276532;
    --accent: #fbba13;
    --white: #ffffff;
    --dark: #333333;
    --gray: #f4f4f4;
}

/* Basic Reset & Font Settings */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; overflow-x: hidden; background-color: var(--white); color: var(--dark); }
body.grabbing, body.grabbing * { cursor: grabbing !important; } /* For better drag UX */
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* Header */
header { background-color: var(--white); padding: 15px 50px; position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
header.collapsed { padding: 10px 50px; }
.logo { height: 50px; }
.whatsapp-btn { background-color: var(--accent); color: var(--dark); border: none; padding: 10px 20px; border-radius: 30px; display: flex; align-items: center; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.whatsapp-btn svg { margin-right: 8px; }

/* Section 1 - Hero (Two Columns) */
.section-1 {
    display: flex;
    min-height: 80vh;
    padding: 50px;
    padding-top: 120px; /* Espacio para el header fijo */
    background-color: var(--primary);
    color: var(--white);
    align-items: center;
    gap: 40px;
}
.hero-background { 
    flex: 1;
    position: relative;
}
#hero-video-container { 
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-placeholder {
    width: 100%; 
    height: auto; 
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.hero-video { 
    width: 100%; 
    height: auto; 
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.video-fallback { display: none; }
#hero-video-container.video-failed .hero-video { display: none; }
#hero-video-container.video-failed .video-fallback { display: block; }

.load-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.load-video-btn:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.load-video-btn.hidden {
    display: none;
}

.video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    padding: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.video-spinner.visible {
    display: flex;
}

.spinner-icon {
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    flex: 1;
    max-width: none;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-content h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: var(--white); line-height: 1.6; margin-bottom: 30px; opacity: 0.9; }
.cta-btn { background-color: var(--accent); color: var(--dark); border: none; padding: 15px 30px; border-radius: 30px; display: inline-flex; align-items: center; font-weight: bold; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.cta-btn svg { margin-right: 10px; }

/* General Section Styling */
.section-2, .section-3, .section-4, .section-5, .faq-section { padding: 50px; }
.section-2 { background-color: var(--white); }
.section-3 { background-color: var(--gray); }
.section-4 { background-color: var(--white); }
.section-5 { background-color: var(--primary); }
.faq-section { background-color: var(--white); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--primary); }
.section-5 .section-title { color: var(--white); }

/* --- INTERACTIVE JAVASCRIPT CAROUSEL STYLES --- */
.carousel-wrapper { max-width: 1200px; margin: 0 auto; overflow: hidden; cursor: grab; }
.carousel-wrapper.grabbing { cursor: grabbing; }
.carousel-container { display: flex; }
.carousel-item { flex-shrink: 0; display: flex; }

/* Interactive Track Styles */
.carousel-track {
    position: relative;
    width: 80%;
    max-width: 400px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin: 25px auto 0 auto;
    cursor: pointer;
}
.carousel-thumb {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    cursor: grab;
}
.carousel-thumb:active {
    cursor: grabbing;
}

/* Specific item styles */
.screenshot { width: 300px; height: 200px; margin: 0 10px; background-color: var(--gray); border-radius: 8px; overflow: hidden; }
.screenshot img { width: 100%; height: 100%; object-fit: contain; background-color: #f0f0f0; }
.client-logo { width: 150px; height: 80px; margin: 0 20px; align-items: center; justify-content: center; }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.testimonial { width: 300px; margin: 0 15px; padding: 20px; background-color: var(--gray); border-radius: 10px; flex-direction: column; align-items: center; text-align: center; }
.testimonial-img { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin-bottom: 15px; flex-shrink: 0; }
.testimonial-img img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-text { font-style: italic; margin-bottom: 15px; line-height: 1.6; }
.testimonial-author { font-weight: bold; }
.testimonial-company { font-size: 0.9rem; color: #777; }

/* FAQ Section */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.faq-header { background-color: var(--primary); color: var(--white); padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.faq-header:hover { background-color: #1e4a27; }
.faq-title { font-size: 1.1rem; font-weight: bold; margin: 0; }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background-color: var(--white); }
.faq-content.expanded { max-height: 250px; }
.faq-icon.expanded { transform: rotate(180deg); }
.faq-text { padding: 20px; color: var(--dark); line-height: 1.6; margin: 0; }

/* Pricing Section */
.pricing-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-gap: 15px; max-width: 1000px; margin: 0 auto; }
.pricing-plan { background-color: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; flex-direction: column; min-height: 100%; }
.pricing-plan:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); z-index: 10; }
.plan-header { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.plan-name { font-size: 1.5rem; margin-bottom: 10px; }
.plan-price { font-size: 2rem; font-weight: bold; color: var(--primary); }
.plan-period { font-size: 0.9rem; color: #777; }
.plan-features { padding: 20px; flex-grow: 1; }
.plan-features ul { list-style-type: none; }
.plan-features li { padding: 8px 0; display: flex; align-items: center; }
.plan-features li::before { content: "✓"; color: var(--primary); margin-right: 10px; font-weight: bold; }
.plan-footer { padding: 20px; text-align: center; margin-top: auto; }
.plan-btn { background-color: var(--primary); color: var(--white); border: none; padding: 10px 20px; border-radius: 30px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; width: 100%; display: inline-block; }
.plan-btn:hover { background-color: var(--accent); color: var(--dark); }
.fine-print { text-align: center; color: var(--white); font-size: 0.9rem; margin-top: 30px; opacity: 0.8; }

/* Footer */
footer { background-color: var(--primary); color: var(--white); padding: 30px 50px; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; }
.footer-link { color: var(--white); }
.footer-link:hover { text-decoration: underline; }
.footer-divider { display: none; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--dark); color: var(--white); padding: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 9999; transform: translateY(100%); transition: transform 0.3s ease; gap: 15px; }
.cookie-banner.active { transform: translateY(0); }
.cookie-text { max-width: 80%; }
.cookie-text a { color: var(--accent); }
.cookie-btn { background-color: var(--accent); color: var(--dark); border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; flex-shrink: 0; }

/* Responsive Design */
@media (min-width: 769px) { .footer-divider { display: inline; } }
@media (max-width: 768px) {
    header, .section-1, .section-2, .section-3, .section-4, .section-5, .faq-section, footer { padding-left: 20px; padding-right: 20px; }
    .section-1 { 
        flex-direction: column; 
        padding-top: 100px; 
        gap: 30px; 
        text-align: center;
    }
    .hero-content { padding: 1.5rem; }
    .screenshot { width: 250px; height: 160px; }
    .testimonial { width: 280px; }
    .cookie-banner { flex-direction: column; text-align: center; }
}