:root {
    --primary-color: #264b3a;
    --secondary-color: #496959;
    --accent-color: #D4B895;
    --background-color: #FFFFFF;
    --text-color: #2C3E50;
    --white: #FFFFFF;
    --verde-principal: #233c30;
    --verde-acento: #587b69;
    --dorado: #D4B895;
    --beige: #F8F5F2;
    --marron-claro: #E8E4E0;
    --fondo-claro: #FFFFFF;
    --texto-oscuro: #2C3E50;
    --texto-claro: #6C757D;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ded5d5;
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 9998;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--verde-principal);
}

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

/* Hero Section */
.hero {
    background: url('../assets/images/logohero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 89, 69, 0.3);
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero p {
    font-family: 'Times New Roman', Times, serif;
    padding-bottom: 500px;
    font-size: 2rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Para asegurar que la imagen se vea bien en móviles */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
        background-size: cover;
        background-position: center 30%; /* Ajusta según tu imagen */
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center 40%; /* Centra la parte más importante */
        background-size: cover;
    }
}

/* Si quieres diferentes imágenes para diferentes tamaños */
@media (max-width: 768px) {
    .hero {
        /* Puedes usar una imagen optimizada para móviles */
        background-image: url('../assets/images/logohero-mobile.webp'), url('../assets/images/logohero.webp');
    }
}

/* Sections General Styles */
section {
    padding: 4rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--verde-principal);
    font-weight: 600;
}

/* Productos Section */
.productos {
    background: var(--beige);
    padding: 4rem 2rem;
}

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

.producto-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(46, 89, 69, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-acento));
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 89, 69, 0.2);
}

.img-container {
    width: 100%;
    height: 300px;
    background: var(--beige);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.producto-card h3 {
    font-size: 1.5rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.producto-card p {
    color: var(--texto-claro);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ver-categoria-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-acento));
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(46, 89, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.ver-categoria-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 89, 69, 0.4);
    background: linear-gradient(135deg, var(--verde-acento), var(--verde-principal));
    color: white;
}

/* Servicios */
.servicios {
    background: #FFFFFF;
    padding: 4rem 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 89, 69, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 89, 69, 0.15);
    border-color: var(--dorado);
}

.servicio-card i {
    font-size: 3rem;
    color: var(--verde-principal);
    margin-bottom: 1rem;
}

.servicio-card h3 {
    color: var(--verde-principal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Historia */
.historia {
    background: var(--beige);
    padding: 4rem 2rem;
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.historia-content img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 89, 69, 0.1);
}

.historia-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--texto-claro);
}

/* Reseñas */
.resenas {
    background: #FFFFFF;
    padding: 4rem 2rem;
}

.resenas-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.resenas-track {
    display: flex;
    animation: scroll-infinite 30s linear infinite;
    gap: 2rem;
}

.resena-card {
    flex: 0 0 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(46, 89, 69, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.resena-card:hover {
    transform: translateY(-5px);
    border-color: var(--dorado);
}

.resena-card h4 {
    color: var(--verde-principal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resena-card p {
    color: var(--texto-claro);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.estrellas {
    color: var(--dorado);
    font-size: 1.2rem;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.resenas-carousel:hover .resenas-track {
    animation-play-state: paused;
}

/* Footer */
.footer {
    background: var(--verde-principal);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h4 {
    color: var(--dorado);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: #ecf0f1;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.footer-links a:hover {
    color: var(--dorado);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--dorado);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #ecf0f1;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--dorado);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 184, 149, 0.3);
    padding-top: 1rem;
    text-align: center;
    color: #ecf0f1;
}

.footer-bottom-links {
    margin-top: 1rem;
}

.footer-bottom-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--dorado);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    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: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: var(--texto-claro);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--verde-principal);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--marron-claro);
    gap: 15px;
}

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

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

.cart-item h4 {
    color: var(--verde-principal);
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item p {
    color: var(--texto-claro);
    margin: 0;
    font-size: 0.9rem;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-total {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--dorado);
}

.cart-total p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--verde-principal);
    margin-bottom: 15px;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-acento));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, var(--verde-acento), var(--verde-principal));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 89, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .historia-content {
        grid-template-columns: 1fr;
    }

    .productos-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

