:root {
    --primary-color: #2E7D32; /* Verde oscuro principal */
    --secondary-color: #4CAF50; /* Verde más claro */
    --accent-color: #FFC107; /* Amarillo/Dorado para acentos */
    --text-color: #333;
    --light-bg-color: #f8f9fa;
    --white-color: #fff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Ajusta según tu logo */
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.cart-icon {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    cursor: pointer;
}

.cart-icon i {
    font-size: 1.5rem;
    margin-right: 5px;
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: url('Fondo-colmenar.jpg') no-repeat center center/cover; /* Reemplaza con imagen de fondo real */
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
}
#hero::before { /* Overlay para mejorar legibilidad del texto */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative; /* Para que esté sobre el overlay */
    z-index: 1;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #e0a800; /* Un poco más oscuro */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Banner (para beneficios y testimonios) */
.section-banner {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 50px 0;
    text-align: center;
}
.section-banner h2, .section-banner h3 {
    color: var(--white-color);
}
.section-banner p {
    color: #e0e0e0;
}

.section-banner-alt { /* Para testimonios, un fondo más claro */
    background-color: var(--light-bg-color);
    padding: 50px 0;
}


/* Benefits Section */
#benefits {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--white-color); /* Iconos blancos sobre el fondo verde */
    margin-bottom: 15px;
}


/* Products Section */
#products {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Para el badge */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 120%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 0.9em;
}

.product-price .current-price {
    color: var(--primary-color);
    font-weight: bold;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--white-color);
    border-radius: 3px;
    font-weight: bold;
}
.product-badge.oferta {
    background-color: #dc3545; /* Rojo para ofertas */
}
.product-badge.nuevo {
    background-color: var(--accent-color); /* Amarillo para nuevos */
    color: var(--text-color);
}


.text-center {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials Section */
#testimonials{
    background:
    linear-gradient(
    rgba(10,35,15,.85),
    rgba(10,35,15,.85)),
    url('images/fondocolmenar.jpg');

    background-size:cover;
    background-position:center;

    padding:80px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-left: 5px solid var(--accent-color);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.testimonial-card h4 {
    text-align: right;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Contact Section */
#contacto {
    padding: 60px 0;
}
#contacto p {
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-secondary);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button {
    align-self: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}
footer .social-icons {
    margin-top: 10px;
}
footer .social-icons a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
footer .social-icons a:hover {
    color: var(--accent-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px; /* Cambiado a la izquierda como en una de las capturas */
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #1DA851;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.0rem; /* Más pequeño en móvil */
    }
    header nav {
    display: none;
    flex-direction: column;
    width: 100%;

    background: #18381f; /* Verde oscuro */

    position: absolute;
    top: 70px;
    left: 0;

    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    }
    header nav.active { /* Clase para mostrar menú */
        display: flex;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
    }
    header nav ul li {
        margin: 0;
        text-align: center;
    }
    header nav ul li a {
    display: block;
    padding: 15px;
    color: #ffffff; /* Letras blancas */
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    header nav ul li a.active,
    header nav ul li a:hover {
    background: #d8b15d; /* Dorado */

    color: #18381f; /* Verde oscuro */

    border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .menu-toggle {
        display: block; /* Mostrar botón de hamburguesa */
    }
    .cart-icon span {
        display: none; /* Ocultar texto del carrito en móvil, solo ícono */
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .product-grid {
        grid-template-columns: 1fr; /* Productos en una columna */
    }
    .benefits-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
/* --- ESTILOS DEL CARRITO DE COMPRAS Y OVERLAY --- */

/* Hacer el ícono del carrito clickeable y consistente */
.cart-icon {
    cursor: pointer;
}

/* Panel lateral del carrito (Sidebar) */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Inicia fuera de la pantalla */
    width: 380px;
    max-width: 90%; /* Para que no ocupe toda la pantalla en móviles */
    height: 100%;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    transition: right 0.4s ease-in-out;
    z-index: 1001; /* Debe estar por encima del overlay y el header */
    display: flex;
    flex-direction: column;
}

/* Clase para mostrar el sidebar */
.cart-sidebar.open {
    right: 0; /* Lo mueve a la vista */
}

.cart-sidebar h2 {
    font-family: var(--font-primary);
    padding: 20px 25px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}
.close-btn:hover {
    color: var(--text-color);
}

#cart-items-container {
    flex-grow: 1; /* Permite que este contenedor crezca y ocupe el espacio disponible */
    overflow-y: auto; /* Agrega scroll si hay muchos productos */
    padding: 10px 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color) !important; /* Usamos !important para asegurar el color */
}

.remove-item-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 28px;
    text-align: center;
    transition: background-color 0.2s;
}
.remove-item-btn:hover {
    background-color: #e53935;
}

.empty-cart-message {
    text-align: center;
    color: #888;
    margin-top: 50px;
}

.cart-summary {
    padding: 20px 25px;
    border-top: 2px solid var(--secondary-color);
    background-color: var(--light-bg-color);
}

.cart-summary p {
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    margin: 0 0 15px 0;
    font-family: var(--font-primary);
}

#checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background-color: var(--primary-color); /* Usamos el verde principal para el botón de pago */
}

#checkout-btn:hover {
    background-color: var(--secondary-color); /* Verde más claro en hover */
}

/* Fondo oscuro (Overlay) */
.overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000; /* Por debajo del sidebar, pero encima de todo lo demás */
}
/* Clase para mostrar el overlay */
.overlay.show {
    display: block;
}
/* --- ESTILOS PARA FEEDBACK VISUAL AL AÑADIR AL CARRITO --- */

/* 1. Estilo para el botón cuando el producto está añadido */
.add-to-cart-btn.added {
    background-color: #28a745 !important; /* Verde de "éxito" con !important para asegurar que sobreescriba otros estilos */
    color: white;
    cursor: default;
    pointer-events: none; /* Deshabilita temporalmente el botón */
}

/* 2. Animación para el ícono del carrito */
@keyframes shake {
    10%, 90% { transform: translateX(-3px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* 3. Clase que aplica la animación */
.cart-icon.shaking {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}
/* --- ESTILOS PARA LOS MENSAJES DEL FORMULARIO DE CONTACTO --- */
#form-status {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Estilo para mensaje de éxito */
#form-status.success {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde oscuro */
    border: 1px solid #c3e6cb;
}

/* Estilo para mensaje de error */
#form-status.error {
    background-color: #f8d7da; /* Rojo claro */
    color: #721c24; /* Rojo oscuro */
    border: 1px solid #f5c6cb;
}

.texto-centrado {
    text-align: center;
}
.video-container {
    text-align: center;
}

.video-container iframe {
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
}

/* ===== DISEÑO PREMIUM EL NECTAR DE TENERIA ===== */

body{
    background:#f8f4eb;
}

/* HEADER */
header{
    background:linear-gradient(
    90deg,
    #16371f,
    #244b2c,
    #16371f
    );
    padding:15px 0;
    box-shadow:none;
}

.logo h1{
    color:#d8b15d;
    font-size:1.5rem;
    font-family:'Cormorant Garamond', serif;
}

header nav ul li a{
    color:white;
    font-weight:600;
}

header nav ul li a:hover,
header nav ul li a.active{
    color:#d8b15d;
    border-bottom:2px solid #d8b15d;
}

.cart-icon{
    color:#d8b15d;
}

/* TITULOS */
h1,h2,h3{
    font-family:'Cormorant Garamond', serif;
}

.section-title{
    font-size:3rem;
    color:#1f3a24;
}

/* HERO */
#hero{
    background:
    linear-gradient(
    rgba(0,0,0,.45),
    rgba(0,0,0,.45)),
    url('Fondo-colmenar.jpg');

    background-size:cover;
    background-position:center;

    height:50vh;

    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-content h2{
    font-size:4rem;
    color:white;
}

.hero-content p{
    color:white;
    font-size:1.2rem;
}

/* PRODUCTOS */

#products{
    padding-top:80px;
    padding-bottom:80px;
}

.product-card{
    background:white;
    border:none;
    border-radius:15px;
    overflow:hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.product-card h3{
    color:#222;
    font-size:1.5rem;
}

.product-price{
    font-size:1.3rem;
}

.current-price{
    color:#1d4d2a;
    font-weight:bold;
}

/* BADGES */

.product-badge.oferta{
    background:#dc3545;
}

.product-badge.nuevo{
    background:#ffc107;
    color:#222;
}

/* BOTONES */

.btn-primary{
    background:#d8a63c;
    color:white;
    border-radius:8px;
}

.btn-primary:hover{
    background:#be8e28;
}

.btn-secondary{
    background:#18381f;
    color:white;
    border-radius:8px;
}

.btn-secondary:hover{
    background:#244b2c;
}

/* TESTIMONIOS */

#testimonials{
    background:
    linear-gradient(
    rgba(10,35,15,.85),
    rgba(10,35,15,.85)),
    url('fondo-apiario.jpg');

    background-size:cover;
    background-position:center;

    padding:80px 0;
}

#testimonials h2{
    color:white;
    font-size:3rem;
}

.testimonial-card{
    background:rgba(255,255,255,.08);

    backdrop-filter:blur(5px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:15px;

    color:white;

    box-shadow:none;
}

.testimonial-card p{
    color:white;
}

.testimonial-card h4{
    color:#d8b15d;
}

/* CONTACTO */

#contacto{
    padding:80px 0;
}

.contact-form{
    background:white;
    padding:30px;
    border-radius:15px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.contact-form input,
.contact-form textarea{
    border:1px solid #ddd;
    border-radius:8px;
}

/* FOOTER */

footer{
    background:#18381f;
}

footer p{
    color:white;
}

/* WHATSAPP */

.whatsapp-float{
    width:65px;
    height:65px;
    font-size:35px;
}

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:url('img/panal.png');

    background-size:180px;

    opacity:0.03;

    pointer-events:none;

    z-index:-1;
}

#products{
    background:
    url('images/miel-izquierda.png') left center no-repeat,
    url('images/flores-derecha.png') right center no-repeat,
    #f8f4eb;

    background-size:
    220px,
    220px,
    cover;

    padding:80px 0;
}

