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

/* Estructura para footer abajo */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Didact Gothic", sans-serif;
}

.contacto {
    flex: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #bfbaba;
    padding: 10px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: none;
}

.logo img {
    height: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: none;
}

.nav a:hover {
    color: #0BAE03;
}

.carrito-icono {
    position: relative;
}

.carrito-icono a {
    font-size: 1.3rem;
    text-decoration: none;
    color: #000000
}

.carrito-contador {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #0BAE03;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Footer */
.footer {
    width: 100%;
    background: #bfbaba;
    padding: 40px 10% 20px;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    border-bottom: 1px solid #999;
    padding-bottom: 25px;
}

.footer-left {
    flex: 1;
    max-width: 45%;
    color: #333;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
}

.footer-left p {
    color: #333;
    line-height: 1.5;
}

.footer-right {
    flex: 1;
    max-width: 45%;
    text-align: right;
    color: #fff;
}

.footer-right p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #333;
}

.footer-bottom span {
    color: #0BAE03;
    font-weight: bold;
}

.footer-nav {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #0BAE03;
}

/* About */
.about {
    background-color: #f5f0ed;
    padding: 80px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0BAE03;
    font-weight: bold;
}

.about-text {
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

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

.card-text {
    padding: 20px;
}

.card-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0BAE03;
}

.card-text p {
    font-size: 1rem;
    color: #555;
}

/* Fresh */
.fresh {
    position: relative;
    background: url("../img/Nota1.jpg") no-repeat center center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
    padding: 0 10%;
}

.fresh::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.fresh-content {
    position: relative;
    max-width: 600px;
}

.fresh-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.fresh-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.fresh-content .btn {
    display: inline-block;
    background: #0BAE03;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.fresh-content .btn:hover {
    background: #008a34;
}

/* Botón general */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #0BAE03;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s;
}

.btn:hover {
    background: #1b4332;
}

/* Contacto */
.seccion-contacto {
    padding: 60px 20px;
    background-color: #f7f1f0;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.contacto-info {
    flex: 1;
}

.contacto-info h2 {
    color: #0BAE03;
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.contacto-info .subtitulo {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.contacto-info .descripcion {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contacto-img {
    max-width: 550px;
    width: 100%;
    height: auto;
}

.contacto-formulario {
    flex: 1;
    max-width: 450px;
    width: 100%;
}

.contacto-form-flex {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form-flex input,
.contacto-form-flex textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.contacto-form-flex input:focus,
.contacto-form-flex textarea:focus {
    border-color: #0BAE03;
}

.contacto-form-flex textarea {
    resize: vertical;
}

.btn-enviar-contacto {
    width: 100%;
    background-color: #0BAE03;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-enviar-contacto:hover {
    background-color: #008700;
}

/* Testimonios */
.testimonios-carrusel h2 {
    color: #0BAE03;
    font-size: 2.3rem;
    text-align: center;
    width: 100%;
    margin-top: 60px;
}

.testimonios-carrusel .subtitulo-seccion {
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 10px;
    color: #333;
    font-size: 1.2rem;
}

.testimonio-container {
    position: relative;
    height: 500px;
    max-width: 900px;
    margin: 50px auto;
}

.testimonio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.testimonio-slide.active {
    opacity: 1;
    position: relative;
}

.testimonio-card {
    background-color: #0BAE03;
    color: white;
    padding: 60px 40px;
    border-radius: 25px;
}

.testimonio-card .quote {
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
}

.estrellas {
    font-size: 1.3rem;
    color: gold;
    margin-bottom: 20px;
}

.testimonio-card .perfil img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.prev-test, .next-test {
    background: white;
    border: 2px solid #0BAE03;
    color: #0BAE03;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.prev-test:hover, .next-test:hover {
    background: #0BAE03;
    color: white;
}

.dot-test {
    height: 12px;
    width: 12px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
}

.dot-test.active {
    background-color: #0BAE03;
}

/* Productos */
.harvest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.harvest-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.harvest-card:hover {
    transform: translateY(-5px);
}

.harvest-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.harvest-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.harvest-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.harvest-info .precio {
    color: #0BAE03;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

.btn-agregar-carrito {
    background: #0BAE03;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    margin-top: auto;
}

.btn-agregar-carrito:hover {
    background: #089002;
}

#productos {
    padding: 60px 20px 80px 20px;
    background: #f7f1f0;
}

#productos h2 {
    text-align: center;
    color: #0BAE03;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

/* Hero Carrusel */
.hero-carrusel {
    margin-top: 70px;
    height: 85vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 20px 0;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 30;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #0BAE03;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: white !important;
        padding: 10px 20px !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    .menu-toggle {
        display: block !important;
        background: #0BAE03 !important;
        color: white !important;
        border: none !important;
        padding: 10px 15px !important;
        font-size: 1.5rem !important;
        border-radius: 5px !important;
        cursor: pointer !important;
        z-index: 10000 !important;
    }
    
    .nav {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 20px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        z-index: 9998 !important;
    }
    
    .nav.active {
        display: flex !important;
    }
    
    .nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav ul li {
        width: 100% !important;
        text-align: center !important;
        list-style: none !important;
    }
    
    .nav ul li a {
        display: block !important;
        padding: 12px !important;
        color: #333 !important;
        text-decoration: none !important;
        border-bottom: none !important;
    }
    
    .nav ul li a:hover {
        background: #f0fdf0 !important;
        color: #0BAE03 !important;
    }
    
    .hero-carrusel {
        margin-top: 70px !important;
    }
    
    .harvest-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .contacto-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contacto-formulario {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .harvest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
