/* Variables y paleta de colores natural/orgánica */
:root {
    --primary-green: #29603B;
    --primary-light: #478C5C;
    --primary-hover: #1e4d2d;
    --background: #FDFCF8;
    --card-bg: #FFFFFF;
    --font-color: #1E2923;
    --font-muted: #57655F;
    --accent-color: #D4E3D0;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--font-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar: Glassmorphism suave */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari */
    z-index: 1000;
    border-bottom: 1px solid rgba(41, 96, 59, 0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-leaf {
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

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

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

/* Iconos y Acciones en Navbar */
.nav-actions {
    display: flex;
    align-items: center;
}

.btn-icon {
    background: white;
    border: 1px solid rgba(41, 96, 59, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--font-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-speed);
}

.btn-icon:hover {
    box-shadow: 0 4px 12px rgba(41, 96, 59, 0.15);
    transform: translateY(-2px);
}

#cart-count {
    background: var(--accent-color);
    color: var(--primary-green);
    border-radius: 50%;
    padding: 0.1rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 800;
}

#cart-count.active {
    background: var(--primary-green);
    color: white;
    animation: pop 0.3s ease-out;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Botones con Micro-Animaciones */
.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-green);
    transition: var(--transition-speed);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(41, 96, 59, 0.25);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41, 96, 59, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-green);
    transition: var(--transition-speed);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 5% 4rem 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--font-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

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

.hero-image img {
    width: 100%;
    max-width: 700px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    /* Animación flotante para darle vida */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sección Nosotros */
.about {
    padding: 6rem 5%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--card-bg);
    padding: 5rem 4rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.about-card h2 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.about-card p {
    font-size: 1.25rem;
    color: var(--font-color);
    line-height: 1.8;
}

/* Tienda / Productos */
.shop {
    padding: 7rem 5%;
}

.shop-header {
    text-align: center;
    margin-bottom: 5rem;
}

.shop-header h2 {
    font-size: 3.5rem;
    color: var(--font-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.shop-header p {
    color: var(--font-muted);
    font-size: 1.25rem;
}

/* Grid de Productos Moderno */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition-speed);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 1/1; /* Cuadrado perfecto */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .img-wrapper img {
    transform: scale(1.08);
}

.category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    font-weight: 700;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin: 0.8rem 0;
    color: var(--font-color);
    font-weight: 700;
}

.product-info p {
    color: var(--font-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1; /* Mantiene la alineación de la caja de pie */
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green);
}

.btn-cart {
    background: var(--accent-color);
    color: var(--primary-green);
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

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

/* Footer modernizado */
footer {
    background: var(--font-color);
    color: white;
    padding: 5rem 5% 2rem 5%;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-social p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
}

.social-link {
    display: inline-block;
    color: var(--primary-green);
    background-color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-speed);
}

.social-link:hover {
    background-color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

/* Responsive Design (Móvil) */
@media (max-width: 900px) {
    .nav-links {
        display: none; /* Podríamos agregar un menú hamburguesa futuro */
    }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-card {
        padding: 3rem 2rem;
    }
    
    .shop-header h2 {
        font-size: 2.8rem;
    }
}

/* Sidebar del Carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 100vw;
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--font-muted);
    transition: var(--transition-speed);
}
.close-cart:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: var(--font-muted);
    font-size: 1.1rem;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.item-price {
    font-weight: 700;
    color: var(--primary-green);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--background);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
}

.item-actions button {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 25px;
    height: 25px;
    font-weight: 800;
    cursor: pointer;
    color: var(--font-color);
}

.cart-footer {
    padding: 2rem;
    background: var(--background);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--font-color);
}

.checkout-form {
    display: none; /* Se activa con JS */
    flex-direction: column;
    gap: 1rem;
}

.checkout-form input, .checkout-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.checkout-form input:focus, .checkout-form select:focus {
    outline: 2px solid var(--primary-green);
    border-color: transparent;
}

.checkout-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--font-color);
}

.btn-whatsapp {
    background: #25D366; /* Verde Oficial de WhatsApp */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-speed);
    text-align: center;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Paso 2 del Carrito: Pantalla de Pago */
.payment-step {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}

.payment-step h3 {
    color: var(--font-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

#payment-amount {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-green);
    display: block;
    margin-top: 0.3rem;
}

.alias-box {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px dashed var(--primary-light);
    margin: 0.5rem 0;
}

.alias-box p {
    font-size: 1.2rem;
    margin: 0;
    color: var(--font-color);
}

.payment-instructions {
    font-size: 0.9rem;
    color: var(--font-muted);
    line-height: 1.5;
    background: rgba(41, 96, 59, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--font-muted);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition-speed);
}

.btn-text:hover {
    color: var(--font-color);
}

