/* --- VARIABLES GLOBALES Y ESTILOS BASE --- */
:root {
    --primary-color: #00b8da; /* Un verde oscuro, natural y confiable */
    --secondary-color: #FFC107; /* Un amarillo/dorado para botones y acentos */
    --dark-text: #3c3c3b;
    --light-text: #FFFFFF;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para el header fijo */
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.light-bg {
    background: var(--background-light);
}
h1, h2, h3 { font-weight: 600; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px;}
p { font-size: 1rem; }
img { max-width: 100%; height: auto; }
section { padding: 80px 0; }
.text-center { text-align: center; }

/* --- BOTONES --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary-color); color: var(--light-text) !important; }
.btn-primary:hover { background-color: #004f59; }
.btn-secondary { background-color: var(--secondary-color) !important; color: var(--dark-text); }
.btn-secondary:hover { background-color: #FFA000 !important;}

/* --- HEADER Y NAVEGACIÓN --- */
.header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); height: 80px; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { 
	background:url("../img/logo_full.svg") no-repeat center;
	background-size: contain;
	width: 200px;
	height: 100%;
	border: 1px solide #ff0000;
	cursor: pointer;
	
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--dark-text); font-weight: 600; padding: 5px 10px; position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--dark-text); }

/* --- FOOTER --- */
.footer { background-color: #222; color: #ccc; padding: 60px 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h4 { color: var(--light-text); margin-bottom: 15px; }
.footer-col a { display: block; color: #ccc; text-decoration: none; margin-bottom: 10px; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--secondary-color); }
.footer .logo { color: var(--light-text); }

/* --- SECCIONES PÁGINA DE INICIO (HOME) --- */
.hero-section { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../img/img-002.jpg"); background-size: cover; background-position: center; height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--light-text); }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; }
.promesa-section { background-color: var(--background-light); }
.promesa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.promesa-icon { border-radius: 50%; margin-bottom: 15px; }
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.content-split .content-text { padding-right: 20px; }
.content-split.reverse .content-text { order: 2; padding-right: 0; padding-left: 20px; }
.content-image img { border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.productos-section { background-color: var(--background-light); }
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.producto-card { background: var(--background-white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-align: center; padding-bottom: 20px; }
.producto-card img { width: 100%; height: 250px; object-fit: cover; }
.producto-card h3 { margin: 20px 0 10px 0; }
.pdv-section { background-color: var(--primary-color); color: var(--light-text); }
.pdv-section h2, .pdv-section .subtitle { color: var(--light-text); text-align: center; }
.pdv-section .subtitle { max-width: 500px; margin: -20px auto 30px auto; }
.pdv-form { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
.pdv-form input { width: 70%; padding: 15px; border: none; border-radius: 50px 0 0 50px; font-size: 1rem; }
.pdv-form button { width: 30%; border-radius: 0 50px 50px 0; }
.contact-form { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; }
.contact-form button { align-self: center; }

/* --- SECCIONES PÁGINA MICROGRANJAS --- */
.page-hero { background-size: cover; background-position: center; height: 50vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--light-text); padding: 0 20px; margin-top: 80px; }
.page-hero h1 { font-size: 2.8rem; }
.page-hero p { font-size: 1.2rem; max-width: 700px; margin: 20px auto 0 auto; }
.why-section { background: var(--background-light); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.problem-col h3, .solution-col h3 { color: var(--primary-color); margin-bottom: 15px; }
.solution-col ul { list-style: none; padding: 0; }
.solution-col li { margin-bottom: 15px; font-size: 1.1rem; }
.ecosystem-section { background: var(--background-white); }
.farm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.farm-card { border: 1px solid #eee; border-radius: 10px; text-align: center; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.farm-card img { width: 100%; border-radius: 8px; margin-bottom: 15px; height: 200px; object-fit: cover;}
.breeds-section { background: var(--background-light); }
.breeds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.breed-card { text-align: center; }
.breed-card img { width: 100%; border-radius: 10px; margin-bottom: 20px; height: 250px; object-fit: cover; }
.breed-card h3 { margin-bottom: 10px; }
.partner-section { background: var(--background-white); }
.partner-section .subtitle { text-align: center; max-width: 800px; margin: -20px auto 40px auto; }
.partner-section h3 { text-align: center; margin-top: 50px; margin-bottom: 20px; }
.partner-form { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.partner-form .form-row { display: flex; gap: 15px; }
.partner-form .form-row input { width: 100%; }
.partner-form input, .partner-form textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; }
.partner-form button { align-self: center; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .content-split, .content-split.reverse { grid-template-columns: 1fr; }
    .content-split .content-text, .content-split.reverse .content-text { order: 2; padding: 0; text-align: center; }
    .content-split .content-image, .content-split.reverse .content-image { order: 1; margin-bottom: 30px; }
    .comparison-grid, .breeds-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav-links { position: absolute; left: -100%; top: 80px; gap: 0; flex-direction: column; background-color: var(--background-white); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); }
    .nav-links.active { left: 0; }
    .nav-links a { padding: 15px 0; width: 100%; }
    .nav-links .btn { display: none; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-section { height: 90vh; }
    .pdv-form { flex-direction: column; }
    .pdv-form input { width: 90%; border-radius: 50px; margin-bottom: 10px; text-align: center; }
    .pdv-form button { width: 100%; border-radius: 50px; }
    .partner-form .form-row { flex-direction: column; }
	.partner-form .form-row input { width: 90%; }
	.partner-form input, .partner-form textarea { width: 90%; }
	.contact-form { width: 90%; }
	.contact-form input, .contact-form textarea { width: 90%; }
}

#place-picker-box {
display: flex;
justify-content: center;
align-items: center;
}

#place-picker-container {
text-align: left;
}

/* --- SECCIÓN CONSULTA QR --- */
.consulta-qr-section {
    background: var(--background-white);
    text-align: center;
} 

.consulta-qr-section .subtitle {
    max-width: 600px;
    margin: -20px auto 40px auto;
}

.qr-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.qr-form input {
    width: 70%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.qr-form button {
    width: 30%;
    border-radius: 0 50px 50px 0;
}

.mobile-view {
    display: none; /* Oculto por defecto */
}

#scan-qr-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

#scan-qr-btn .icon-camera {
    margin-right: 8px;
}

#qr-video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid var(--primary-color);
}


/* --- REGLAS RESPONSIVAS PARA LA SECCIÓN QR --- */
/* Añadir dentro de la media query @media (max-width: 768px) */

@media (max-width: 768px) {
    /* ... tus otros estilos responsivos ... */
    .desktop-view {
        display: none; /* Ocultar en móvil */
    }
    .mobile-view {
        display: block; /* Mostrar en móvil */
    }
    .qr-form {
        flex-direction: column;
    }
    .qr-form input {
        width: 90%;
        border-radius: 50px;
        margin-bottom: 10px;
        text-align: center;
    }
    .qr-form button {
        width: 100%;
        border-radius: 50px;
    }
}

/* --- ESTILOS PÁGINA NOSOTROS --- */

.intro-section {
    background: var(--background-white);
}

.mission-vision-section {
    background: var(--background-light);
}

/* Reutilizamos el grid de la página de microgranjas */
.mission-vision-section .comparison-grid {
    align-items: center;
}
.mission-col h3, .vision-col h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.values-section {
    background: var(--background-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    border: 1px solid #eee;
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
}

.value-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nostros-section {
    background: var(--primary-color);
    color: var(--light-text);
}

.nostros-section h2 {
    color: var(--light-text);
}
.nostros-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}
.nostros-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nostros-buttons .btn-secondary {
    background-color: var(--light-text);
}

/* --- STYLES FOR PRODUCTS PAGE --- */

.product-category-section {
    padding: 80px 0;
}



.category-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px auto;
    font-size: 1.1rem;
}

.product-grid-dual, .product-grid-triple {
    display: grid;
    gap: 40px;
}

.product-grid-dual {
    grid-template-columns: 1fr 1fr;
}

.product-grid-triple {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card-large {
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card-large img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card-large .product-info {
    padding: 30px;
}

.product-card-large h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.product-card-small {
    text-align: center;
}

.product-card-small img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --- RESPONSIVE RULES FOR PRODUCTS PAGE --- */
/* Add inside @media (max-width: 992px) */
.product-grid-dual {
    grid-template-columns: 1fr;
}


/* --- ESTILOS PÁGINA PUNTOS DE VENTA --- */

.stores-section {
    padding: 80px 0;
}


.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.store-card {
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}
.store-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.store-card .store-info {
    padding: 25px;
}
.store-card .store-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.store-card .store-info p {
    margin-bottom: 5px;
}

.partners-section {
    padding: 80px 0;
}

.partners-list ul {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 40px;
}
.partners-list li {
    background: var(--background-light);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

/* --- REGLAS RESPONSIVAS --- */
/* Añadir dentro de @media (max-width: 992px) */
.stores-grid {
    grid-template-columns: 1fr;
}

/* Añadir dentro de @media (max-width: 768px) */
.partners-list ul {
    column-count: 1;
}

/* --- ESTILOS SECCIÓN ALIMENTACIÓN (MICROGRANJAS) --- */

.diet-section {
    padding: 80px 0;
}



.diet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.diet-card {
    background: var(--background-white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.diet-icon {
    font-size: 3rem; /* Tamaño del emoji */
    display: block;
    margin-bottom: 15px;
}

.diet-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- ESTILOS PÁGINA FAQ --- */
.faq-section {
    padding: 80px 0;
}
.faq-category {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.faq-category:first-of-type {
    margin-top: 0;
}
.faq-item {
    border-bottom: 1px solid #eee;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+'; /* Ícono de más */
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: rotate(45deg); /* Rota el + para parecer una x */
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
    margin-top: 0;
    padding-bottom: 20px;
    line-height: 1.7;
}