:root {
    --primary: #2d5a27;
    --primary-light: #4a8241;
    --primary-dark: #1e3d1a;
    --secondary: #f4d03f;
    --accent: #e67e22;
    --white: #ffffff;
    --bg-light: #f9fbf9;
    --text-main: #1a2a1a;
    --text-muted: #5a6a5a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/hero-ritual-pampa.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 0;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

/* --- Padrón Uruguayo Section --- */
.padron-section {
    background-color: white;
    padding-bottom: 80px;
}

.padron-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.padron-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.padron-card {
    background: #fdfdfd;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.padron-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(45, 90, 39, 0.08);
    border-color: var(--primary-light);
}

.padron-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.padron-icon i {
    width: 30px;
    height: 30px;
}

.icon-green {
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary);
}

.icon-orange {
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent);
}

.icon-green-alt {
    background: rgba(74, 130, 65, 0.1);
    color: var(--primary-light);
}

.padron-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.padron-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .padron-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .padron-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Catalog --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ribbon {
    position: absolute;
    top: 25px;
    left: -40px;
    background: rgba(128, 128, 128, 0.75);
    color: white;
    padding: 8px 45px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-45deg);
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

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

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: white;
    padding: 20px;
}

.product-info {
    padding: 20px 25px 25px 25px;
}

.product-disclaimer {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 10px;
    font-style: italic;
}

.product-weight {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary);
    color: white;
}

/* --- About Us (Nosotros) --- */
.about-section {
    background: #fdfdfd;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

.about-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-card {
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-card i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

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

@media (max-width: 768px) {
    .about-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        justify-content: center;
    }
}

/* --- Cart Modal --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

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

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid #eee;
}

.cart-address {
    margin-bottom: 20px;
}

.cart-address label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.cart-address input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cart-address input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.location-input-group {
    display: flex;
    gap: 10px;
}

.get-location-btn {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.get-location-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.location-status {
    display: block;
    font-size: 0.8rem;
    margin-top: 6px;
    color: var(--primary);
    font-weight: 600;
}

.location-status.error {
    color: #e74c3c;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* --- Footer --- */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 50px 5%;
        gap: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: flex;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    section {
        padding: 60px 5%;
    }
}
