/* =========================================
   Cactitos Landing Page Styles (Actualizado)
   ========================================= */

:root {
    /* Brand Colors based on Mockups */
    --clr-green-brand: #429A1A;
    /* Verde principal logos/titulos */
    --clr-green-bg: #40A014;
    /* Verde del top bar y footer */
    --clr-green-light: #F0FAD7;
    /* Verde claro para acordeón */
    --clr-purple-brand: #A849A4;
    /* Morado principal botones/acordeón */
    --clr-text-main: #1E1E1E;
    --clr-text-dark: #000000;

    /* Layout */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Placeholders (Eliminar cuando tengas las imágenes) */
    --ph-bg: #E0E0E0;
    --ph-color: #757575;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

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

/* Typography Utilities */
.green-title {
    color: var(--clr-green-brand);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.purple-subtitle {
    color: var(--clr-purple-brand);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.subtitle-bold {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.green-text {
    color: var(--clr-green-brand);
}

/* Image Placeholders (Guías visuales) */
.img-placeholder {
    background-color: var(--ph-bg);
    color: var(--ph-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px dashed #BDBDBD;
    border-radius: var(--radius-md);
    text-align: center;
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-purple {
    background-color: var(--clr-purple-brand);
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.2rem;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #51C800 0%, #2E6200 100%);
    /* Aproximación al verde del mockup */
    padding: 15px 0;
    border-radius: 0 0 10px 10px;
    /* Ligero borde redondeado según mockup */
    margin: 0 20px;
}

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

.logo-placeholder {
    width: 150px;
    height: 40px;
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
}

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

.brand-title {
    font-size: 5rem;
    color: var(--clr-green-brand);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--clr-text-dark);
}

.hero-content p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.store-buttons {
    display: flex;
    gap: 15px;
}

.store-placeholder {
    width: 130px;
    height: 40px;
    border-radius: 8px;
}

.hero-img-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 20px;
}

/* Separator Line */
.section-header::before,
.how-it-works-section::before,
.team-section::before,
.faq-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 60px auto;
}

/* About Section */
.about-section {
    padding: 40px 0;
}

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

.garambullo-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
}

/* How it Works */
.how-it-works-section {
    padding: 40px 0;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.sensors-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 20px;
}

.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    padding: 30px;
    border-radius: var(--radius-md);
    color: white;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.bg-green {
    background-color: var(--clr-green-brand);
}

.bg-purple {
    background-color: var(--clr-purple-brand);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--clr-green-bg) 0%, #2E6200 40%, #FAFAFA 40.1%);
}

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

.phone-placeholder {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    margin: 0 auto;
    transform: rotate(-10deg);
}

.purple-title {
    color: var(--clr-purple-brand);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.purple-title span {
    font-weight: 400;
    font-size: 2.5rem;
}

.download-content p {
    margin-bottom: 30px;
    max-width: 400px;
}

.qr-placeholder {
    width: 250px;
    height: 150px;
}

/* Team Section */
.team-section {
    padding: 60px 0;
}

.team-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.team-card {
    flex: 1;
    min-width: 220px;
    background-color: #F9FDF4;
    /* Verde extra claro */
    border: 1px solid #C5E1A5;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 1rem;
    color: var(--clr-text-dark);
}

.team-info .role {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-info .quote {
    font-size: 0.75rem;
    font-style: italic;
    color: #666;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 40px;
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 10px;
}

.dot.active {
    background-color: var(--clr-green-brand);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0 100px;
}

.accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    background-color: var(--clr-green-light);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 30px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-green-brand);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-header .icon::before,
.accordion-header .icon::after {
    content: '';
    position: absolute;
    background-color: var(--clr-green-brand);
    transition: transform 0.3s ease;
}

.accordion-header .icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.accordion-header .icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.accordion-item.active .accordion-header .icon::after {
    transform: rotate(90deg);
}

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

.accordion-content p {
    padding: 20px 30px;
    font-size: 0.95rem;
    color: #444;
}

/* Footer */
#main-footer {
    background-color: var(--clr-green-brand);
    padding: 40px 0;
    color: white;
}

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

.logo-footer-placeholder {
    width: 150px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    color: white;
}

.footer-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    font-style: italic;
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .how-it-works-content,
    .download-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        align-items: center;
    }

    .about-visual {
        order: -1;
    }

    .download-section {
        background: var(--clr-green-bg);
        color: white;
    }

    .purple-title {
        color: white;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}