:root {
    --bg-cream: #eae8df;
    --bg-light: #f7f6f2;
    --primary: #3d5334;
    --primary-dark: #2e3d27;
    --primary-light: #e0ded4;
    --accent: #596a4e;
    --text-dark: #21281d;
    --text-muted: #5e6858;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(62, 74, 52, 0.08);
    --border-color: rgba(61, 83, 52, 0.15);
}

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

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Decoración de Hojas del fondo */
.leaf-bg {
    display: none;
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.12;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.leaf-bg.top-left {
    top: 50px;
    left: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 90 C 20 60, 40 40, 80 20 M80 20 C 60 40, 50 60, 50 85 M80 20 C 70 30, 80 50, 90 70 M40 60 C 20 50, 15 35, 10 20" stroke="%233d5334" stroke-width="1.5" fill="none"/></svg>');
}

.leaf-bg.bottom-right {
    bottom: 100px;
    right: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M90 10 C 80 40, 60 60, 20 80 M20 80 C 40 60, 50 40, 50 15 M20 80 C 30 70, 20 50, 10 30 M60 40 C 80 50, 85 65, 90 80" stroke="%233d5334" stroke-width="1.5" fill="none"/></svg>');
}

/* Navbar */
.navbar {
    background: rgba(234, 232, 223, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.logo-text {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.btn-download-small {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.btn-download-small:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
    background: var(--bg-cream) url('agroecological_bg.png') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

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

.brand-tag {
    font-family: 'Lora', serif;
    color: var(--primary);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
}

.hero-content h1 {
    font-family: 'Lora', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 580px;
}

.hero-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

.hero-features-list li {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Play Store Badge Icon Simulado */
.play-store-icon::before {
    content: "▶";
    font-size: 14px;
}

/* Mockup Celular */
.hero-visual {
    display: flex;
    justify-content: center;
}

.device-mockup {
    width: 290px;
    height: 580px;
    background: #000000;
    border: 8px solid #1c2217; /* Bezel interno oscuro */
    border-radius: 38px;
    /* Sombras apiladas que crean el borde metalizado plateado y la sombra del teléfono */
    box-shadow: 
        0 0 0 1px #8a9484,  /* Línea externa metal */
        0 0 0 3px #b2baa8,  /* Cuerpo metálico plateado */
        0 0 0 4px #656c5f,  /* Relieve metálico oscuro */
        0 15px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

.device-camera {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #000000;
    border-radius: 50%;
    z-index: 10;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: #fdfcf7;
    /* Marca de agua estilo boceto de hojas */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 90 C 20 60, 40 40, 80 20 M80 20 C 60 40, 50 60, 50 85 M80 20 C 70 30, 80 50, 90 70 M40 60 C 20 50, 15 35, 10 20" stroke="%233d5334" stroke-width="0.3" opacity="0.08" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: 140% 90%;
    background-size: 220px;
    display: flex;
    flex-direction: column;
}

.mock-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 2px;
    font-size: 10px;
    font-weight: 600;
    color: #6d7568;
    background: transparent;
    user-select: none;
}

.status-4g {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 9px;
    margin-right: 2px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-icons .signal-icon,
.status-icons .battery-icon {
    display: flex;
    align-items: center;
    color: #7c8577;
}

.mock-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 8px 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary);
}

.mock-logo-leaf {
    display: flex;
    align-items: center;
    color: var(--primary);
}

.app-brand-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

.mock-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mock-user-card {
    background: var(--white);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 12px rgba(62, 74, 52, 0.02);
    position: relative;
}

.mock-user-card h3 {
    font-family: 'Lora', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.mock-user-card .location {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.loc-pin {
    display: flex;
    align-items: center;
    color: #c62828;
}

.cloud-status {
    position: absolute;
    top: 15px;
    right: 16px;
    font-size: 9px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.mock-info-card {
    background: rgba(49, 61, 44, 0.96); /* Color verde oliva oscuro del flyer */
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #ffffff;
}

.card-icon-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    color: #eae8df;
}

.card-icon-col .bulb {
    color: #ffd54f; /* Bombilla iluminada amarilla */
    display: flex;
    align-items: center;
}

.card-icon-col .leaf {
    color: #81c784; /* Hoja verde clara */
    display: flex;
    align-items: center;
}

.card-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.card-tag {
    font-size: 8px;
    font-weight: 800;
    color: #c4d7be; /* Sage claro para tags */
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.mock-info-card p {
    font-size: 11px;
    color: #eae8df;
    line-height: 1.4;
    font-style: normal;
}

.mock-info-card.nutrition {
    background: rgba(36, 47, 32, 0.96);
}

.mock-info-card.nutrition h4 {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
}

.nutrition-tag {
    color: #e2a54a; /* Color dorado del flyer */
}

.mock-nav {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 4px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c2217; /* Barra de navegación oscura de la app */
    border-radius: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    cursor: pointer;
}

.nav-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    transition: background-color 0.2s, color 0.2s;
    color: #8c9b8d; /* Color oliva apagado para inactivos */
}

.nav-item.active .nav-icon-wrapper {
    background-color: #3e5334; /* Píldora de estado activa en verde oliva */
    color: #ffffff; /* Icono activo en blanco */
}

.nav-label {
    font-size: 9px;
    font-weight: 600;
    color: #8c9b8d;
}

.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 700;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-family: 'Lora', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
}

.features-showcase {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

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

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse .showcase-text {
    direction: ltr;
}

.showcase-item.reverse .showcase-visual {
    direction: ltr;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-text .num {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.5;
}

.showcase-text h3 {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

.showcase-text .subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-top: -10px;
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-muted);
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* About Section */
.about {
    padding: 60px 24px;
    background-color: var(--bg-cream);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.about-box h2 {
    font-family: 'Lora', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.about-box p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: #262f22;
    color: #e2ece3;
    padding: 60px 24px 20px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 15px;
    color: #8c9b8d;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8c9b8d;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    color: #5e6d60;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-features-list {
        justify-content: center;
    }
    
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .showcase-item.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Estilos para los Flyers de Caracteristicas */
.main-hero-flyer {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.showcase-flyer {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.flyer-card {
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(46, 61, 39, 0.12);
    border: 4px solid var(--primary); /* Marco grueso verde oscuro */
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    aspect-ratio: 2 / 3;
}

.flyer-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(46, 61, 39, 0.22), 0 0 0 2.5px #e2a54a; /* Marco exterior dorado */
    border-color: var(--primary-dark);
}

.flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px; /* Oculta bordes rectos de la imagen dentro del marco */
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 34, 23, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--white);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: #ffd54f;
}