/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2d5016;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: #ffa500;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background-color: #ffa500;
    color: #2d5016;
}

.carrito-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
}

.carrito-link:hover {
    background: #ffa500;
    color: #2d5016;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.carrito-link i {
    font-size: 1.3rem;
}

.carrito-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffa500;
    color: #2d5016;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta {
    margin-bottom: 2rem;
}

.btn-pedido-hero {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    text-decoration: none;
    animation: pulse-hero 2s infinite;
}

.btn-pedido-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, #4a7c59, #2d5016);
}

.btn-pedido-hero:active {
    transform: translateY(0);
}

.btn-pedido-hero i {
    font-size: 1.2rem;
}

@keyframes pulse-hero {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(45, 80, 22, 0.5), 0 0 0 8px rgba(45, 80, 22, 0.1);
    }
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature i {
    font-size: 1.5rem;
    color: #ffa500;
}

.feature span {
    font-weight: 600;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d5016;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #ffa500;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Productos Section */
.productos {
    padding: 5rem 0;
    background: #f8f9fa;
}

.productos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d5016;
    position: relative;
}

.productos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.producto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.5rem;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.producto-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.producto-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.precio {
    display: inline-block;
    background: #2d5016;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-ver-productos {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-ver-productos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, #4a7c59, #2d5016);
}

/* Contacto Section */
.contacto {
    padding: 5rem 0;
    background: white;
}

.contacto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d5016;
    position: relative;
}

.contacto h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item i {
    font-size: 1.2rem;
    color: #ffa500;
    margin-top: 0.1rem;
    min-width: 20px;
    text-align: center;
}

.info-item h3 {
    color: #ffa500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.9rem;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.horario {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.horario:last-child {
    margin-bottom: 0;
}

.dia {
    font-weight: 600;
    color: #ffffff;
}

.hora {
    color: #ffa500;
    font-weight: 600;
}

.mapa iframe {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #2d5016;
    color: white;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #ffa500;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffa500;
}

.mapa-container {
    margin-top: 1rem;
}

.mapa-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: 200px;
    border: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 2rem;
    margin-bottom: 2px;
}

.whatsapp-float span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive Design - Solo ajustes menores para desktop */
@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contacto-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-features {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.4rem;
    }

    .info-item {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .info-item i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(45, 80, 22, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        box-sizing: border-box;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        border-radius: 10px;
        width: 200px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .nav a:hover {
        background-color: #ffa500;
        color: #2d5016;
        transform: scale(1.05);
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn-pedido-hero {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el Formulario de Pedidos por WhatsApp */
.formulario-whatsapp {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.formulario-whatsapp h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 1rem;
    text-align: center;
}

.formulario-whatsapp > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Buscador de productos */
.buscar-container {
    margin-bottom: 2rem;
}

/* Buscador global */
.buscador-global-container {
    margin-bottom: 2rem;
}

.search-box-global {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%) !important;
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.3) !important;
    border: 3px solid rgba(255, 165, 0, 0.3) !important;
}

.search-box-global .search-input {
    color: white !important;
}

.search-box-global .search-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.search-box-global .search-input:focus::placeholder {
    color: #ffa500 !important;
}

.search-box-global i {
    color: #ffa500 !important;
}

.search-box-global:focus-within i {
    color: white !important;
    transform: scale(1.2) rotate(10deg) !important;
}

.search-box-global .clear-search {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.search-box-global .clear-search:hover {
    background: #ffa500 !important;
    color: #2d5016 !important;
    transform: scale(1.15) rotate(90deg) !important;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50px;
    padding: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12), inset 0 2px 0 rgba(255,255,255,0.8);
    border: 3px solid transparent;
    background-clip: padding-box;
}
/* Buscador de productos */
.buscador-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50px;
    padding: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12), inset 0 2px 0 rgba(255,255,255,0.8);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.search-box:focus-within {
    background: linear-gradient(135deg, #ffffff 0%, #fff0e0 100%);
    box-shadow: 0 12px 35px rgba(255, 165, 0, 0.25), inset 0 2px 0 rgba(255,255,255,0.9);
    border-color: rgba(255, 165, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.search-box i {
    color: #2d5016;
    font-size: 1.3rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    z-index: 3;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.search-box:focus-within i {
    color: #ff8c00;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(255, 140, 0, 0.3));
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 25px 18px 0;
    font-size: 1rem;
    background: transparent;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 50px;
}

.search-input:focus {
    color: #2d5016;
    font-weight: 600;
}

.search-input::placeholder {
    color: #999;
    transition: all 0.3s ease;
    font-weight: 400;
}

.search-input:focus::placeholder {
    color: #ccc;
    transform: translateX(8px);
    font-weight: 300;
}

.search-input::placeholder {
    color: #999;
}

.clear-search {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.clear-search:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c00 100%);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 15px rgba(255, 108, 53, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.form-pedido {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffa500;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Opciones de entrega */
.entrega-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.entrega-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entrega-option:hover {
    border-color: #ffa500;
    background: #fff;
}

.entrega-option input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: #2d5016;
}

.entrega-option label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.entrega-option i {
    font-size: 1.2rem;
    color: #2d5016;
}

/* Campos adicionales de entrega */
.campos-entrega {
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Pestañas de categorías */
.categoria-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.categoria-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categoria-tab:hover {
    color: #2d5016;
    background: rgba(45, 80, 22, 0.05);
}

.categoria-tab.activa {
    color: #2d5016;
    border-bottom-color: #ffa500;
    background: rgba(255, 165, 0, 0.05);
}

.categoria-tab i {
    font-size: 1.2rem;
}

.categoria-contenido {
    position: relative;
}

.categoria-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.categoria-panel.activo {
    display: block;
    animation: slideInUp 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.productos-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.loading-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

.no-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.error-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    font-style: italic;
    background: #f8d7da;
    border-radius: 8px;
    border: 2px solid #f5c6cb;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.checkbox-item {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 10px;
     background: #f8f9fa;
     border-radius: 8px;
     border: 2px solid transparent;
     transition: all 0.3s ease;
 }

 .checkbox-item:has(.cantidad-panel) {
     flex-direction: column;
     align-items: flex-start;
     gap: 0.5rem;
 }

 .checkbox-item:hover {
     border-color: #ffa500;
     background: #fff;
 }

 /* Estilos para productos no disponibles */
 .producto-no-disponible {
     opacity: 0.6;
     background: #f5f5f5;
     position: relative;
     pointer-events: none;
 }

 .producto-no-disponible label {
     color: #999;
     text-decoration: line-through;
 }

 .producto-no-disponible input[type="checkbox"] {
     opacity: 0.5;
     cursor: not-allowed;
 }

 .etiqueta-no-disponible {
     position: absolute;
     top: 5px;
     right: 5px;
     background: #dc3545;
     color: white;
     padding: 2px 8px;
     border-radius: 12px;
     font-size: 0.7rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
     z-index: 10;
 }

 /* Estilos para productos en promoción */
 .producto-promocion {
     border: 2px solid #ff6b35 !important;
     background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%) !important;
     position: relative;
 }

 .producto-promocion::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, #ff6b35, #ffa500);
     border-radius: 8px 8px 0 0;
 }

 .etiqueta-promocion {
     position: absolute;
     top: 5px;
     right: 5px;
     background: linear-gradient(135deg, #ff6b35, #ffa500);
     color: white;
     padding: 2px 6px;
     border-radius: 12px;
     font-size: 0.65rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.3px;
     box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
     z-index: 10;
     animation: promocion-pulse 2s infinite;
     border: 1px solid rgba(255, 255, 255, 0.3);
     transform: rotate(-5deg);
 }

 @keyframes promocion-pulse {
     0%, 100% {
         transform: scale(1);
         box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4);
     }
     50% {
         transform: scale(1.05);
         box-shadow: 0 5px 12px rgba(255, 107, 53, 0.6);
     }
 }

 .precio-original {
     text-decoration: line-through;
     color: #999;
     font-size: 0.9em;
     margin-right: 8px;
 }

 .precio-promocion {
     color: #ff6b35;
     font-weight: 700;
     font-size: 1.1em;
 }

 /* Ajustes para productos con ambas etiquetas (promoción y no disponible) */
 .producto-no-disponible.producto-promocion .etiqueta-no-disponible {
     right: 60px; /* Mover etiqueta de no disponible para hacer espacio a la de promoción */
 }

 /* Ajustes responsivos para móviles */
 @media (max-width: 768px) {
     .etiqueta-promocion {
         top: 3px;
         right: 3px;
         padding: 1px 4px;
         font-size: 0.6rem;
         border-radius: 8px;
     }

     .producto-no-disponible.producto-promocion .etiqueta-no-disponible {
         right: 45px;
     }
 }

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: #2d5016;
}

.checkbox-item label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Panel de cálculo de gramos para productos KG */
.gramos-panel {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gramos-panel.show {
    display: block;
}

.gramos-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.precio-100g {
    font-size: 0.9rem;
    color: #666;
}

.cantidad-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-cantidad {
    background: #2d5016;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-cantidad:hover {
    background: #4a7c59;
    transform: scale(1.1);
}

.btn-cantidad:active {
    transform: scale(0.95);
}

.cantidad-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5016;
    min-width: 60px;
    text-align: center;
}

.subtotal-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d5016;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.btn-agregar-carrito {
    width: 100%;
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agregar-carrito:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

/* Carrito de compras */
.carrito-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.carrito-container h4 {
    font-family: 'Playfair Display', serif;
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.carrito-lista {
    margin-bottom: 1rem;
}

.carrito-vacio {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-nombre {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 0.25rem;
}

.carrito-item-detalles {
    font-size: 0.9rem;
    color: #666;
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-cantidad-carrito {
    background: #2d5016;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-cantidad-carrito:hover {
    background: #4a7c59;
    transform: scale(1.1);
}

.btn-cantidad-carrito:active {
    transform: scale(0.95);
}

.cantidad-display-carrito {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d5016;
    min-width: 40px;
    text-align: center;
}

.carrito-item-precio {
    font-weight: 700;
    color: #2d5016;
    font-size: 1.1rem;
}

.btn-eliminar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-eliminar:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.carrito-total {
    border-top: 2px solid #2d5016;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d5016;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .formulario-whatsapp {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .formulario-whatsapp h3 {
        font-size: 1.5rem;
    }

    .categoria-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

    .categoria-tab {
        justify-content: center;
        padding: 8px 10px;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-size: 0.8rem;
        text-align: center;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .categoria-tab i {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .categoria-tab.activa {
        border-bottom: none;
        border-left-color: #ffa500;
        background: rgba(255, 165, 0, 0.05);
    }

    .productos-checkbox {
        grid-template-columns: 1fr;
    }

    .checkbox-item {
        padding: 15px;
    }

    .entrega-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .entrega-option {
        padding: 12px;
    }

    .campos-entrega {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-box {
        padding: 0 15px;
    }

    .search-input {
        padding: 12px 0;
        font-size: 0.9rem;
    }

    .cantidad-panel {
        padding: 0.75rem;
    }

    .cantidad-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cantidad-controls {
        justify-content: center;
    }

    .carrito-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .carrito-item-info {
        width: 100%;
    }

    .carrito-item-cantidad {
        justify-content: center;
    }

    .btn-eliminar {
        align-self: flex-end;
    }

    /* Ajustes para modal del carrito en móviles */
    .carrito-modal-content {
        padding: 1.5rem;
    }

    .carrito-modal-content .form-group input,
    .carrito-modal-content .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .carrito-modal-content .entrega-option {
        padding: 12px;
    }

    .carrito-modal-content .form-group label {
        font-size: 0.95rem;
    }
}

/* Modal de confirmación */
#modal-confirmacion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body i {
    font-size: 3rem;
    color: #2d5016;
    margin-bottom: 1rem;
    display: block;
}

.modal-body p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.modal-close {
    background: #2d5016;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #4a7c59;
    transform: translateY(-2px);
}

/* Modal de Términos y Condiciones */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    text-align: center;
}

.terminos-content {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    line-height: 1.6;
    padding-right: 10px;
}

/* Custom scrollbar for terms content */
.terminos-content::-webkit-scrollbar {
    width: 6px;
}

.terminos-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terminos-content::-webkit-scrollbar-thumb {
    background: #2d5016;
    border-radius: 3px;
}

.terminos-content::-webkit-scrollbar-thumb:hover {
    background: #4a7c59;
}

.terminos-content h3 {
    color: #2d5016;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.terminos-content p {
    margin-bottom: 1rem;
    color: #333;
}

.terminos-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terminos-content li {
    margin-bottom: 0.3rem;
    color: #555;
}

/* Modal del Carrito */
.carrito-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.carrito-modal-content h2 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.carrito-modal-content .form-pedido {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sección de Productos */
#productos {
    padding: 5rem 0;
    background: #f8f9fa;
}

#productos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2d5016;
    position: relative;
}

#productos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

#productos > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Sección de Preguntas Frecuentes */
#faq {
    padding: 5rem 0;
    background: white;
}

#faq h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2d5016;
    position: relative;
}

#faq h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

#faq > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #2d5016;
    color: white;
}

.faq-question:hover .faq-toggle {
    color: white;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d5016;
    transition: all 0.3s ease;
    width: 30px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Sección de Información de Contacto debajo del Hero */
.contacto-hero {
    padding: 2rem 0;
/* Resultados de búsqueda global */
.resultados-globales {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.no-results-global {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

.no-results-global i {
    font-size: 4rem;
    color: #999;
    margin-bottom: 1rem;
    display: block;
}

.no-results-global h3 {
    color: #2d5016;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-results-global p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
    background: white;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.contacto-hero-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.contacto-item i {
    color: #2d5016;
    font-size: 1.1rem;
    min-width: 20px;
}

/* Responsive para la sección de contacto */
@media (max-width: 768px) {
    .contacto-hero-grid {
        gap: 0.5rem;
    }

    .contacto-item {
        min-width: 150px;
        font-size: 0.8rem;
    }

    .contacto-item i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contacto-hero {
        padding: 1.5rem 0;
    }

    .contacto-item {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .contacto-item i {
        font-size: 1.2rem;
    }
}