/* === VARIABLES CSS === */
:root {
    --primary-color: #2d5016;
    --secondary-color: #68a357;
    --accent-color: #f4a261;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
}

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === UTILIDADES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-secondary);
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a3009;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.btn-tienda {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-tienda:hover {
    background: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    display: flex;
    min-height: 100vh;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 80px;
}

.hero-content {
    flex: 1;
    padding: 2rem 0;
}

.hero-text h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

/* === NOSOTROS SECTION === */
.nosotros {
    padding: 100px 0;
    background: var(--white);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.nosotros-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 24px;
}

.nosotros-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* === PRODUCTOS SECTION === */
.productos {
    padding: 100px 0;
    background: var(--light-bg);
}

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

.producto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 2rem;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.producto-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.producto-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.producto-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.precio {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* === TEMPORADA SECTION === */
.temporada {
    padding: 100px 0;
    background: var(--white);
}

.temporada-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.temporada-info h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.temporada-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.calendario {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mes {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mes.activo {
    background: var(--secondary-color);
    color: var(--white);
}

.mes.activo i {
    color: var(--white);
}

.mes i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.temporada-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* === NEWSLETTER SECTION === */
.newsletter {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form.inline {
    flex-direction: row;
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* === SHOP STYLES === */
.page-header {
    padding: 120px 0 60px;
    background: var(--light-bg);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.season-status {
    padding: 2rem 0;
    background: var(--white);
}

.status-card {
    display: flex;
    align-items: center;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 2rem;
    gap: 2rem;
}

.status-icon {
    font-size: 2rem;
    color: #856404;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.shop-products {
    padding: 60px 0;
    background: var(--light-bg);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.products-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.filters select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card.featured {
    border: 2px solid var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-options {
    margin-bottom: 1rem;
}

.product-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.quantity-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.product-price {
    margin-bottom: 1rem;
    text-align: center;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.price small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.add-to-cart {
    width: 100%;
    margin-top: 1rem;
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-to-cart:disabled:hover {
    transform: none;
}

/* === NEWSLETTER CTA === */
.newsletter-cta {
    padding: 60px 0;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.newsletter-cta h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === CART SIDEBAR === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-price {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* === FOOTER === */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nosotros-content,
    .temporada-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .temporada-content {
        text-align: center;
    }
    
    .calendario {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal {
        margin: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .calendario {
        grid-template-columns: 1fr;
    }
}
