/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET BASE
   ========================================================================== */
:root {
    --primary-color: #C5A059;       /* Dorado elegante */
    --dark-color: #1A1A1A;          /* Negro principal */
    --light-bg: #F8F6F4;            /* Crema de fondo */
    --text-color: #4A4A4A;          /* Texto secundario */
    --whatsapp-green: #25D366;      /* Verde WhatsApp */
    --whatsapp-hover: #1EBE5D;
    --white: #FFFFFF;
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gold-accent {
    color: var(--primary-color);
}

/* ==========================================================================
   2. BOTONES GENERALES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--dark-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

/* ==========================================================================
   3. ENCABEZADO Y BARRA DE NAVEGACIÓN (HEADER)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 1000;
    border-bottom: 1px solid #E5E0DA;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   4. SECCIÓN PORTADA (HERO EN 2 COLUMNAS)
   ========================================================================== */
.hero {
    padding: 4rem 1.5rem;
    background-color: var(--light-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: #EBE5DF;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* ==========================================================================
   5. TARJETAS DE PRODUCTOS Y BOTÓN DE WHATSAPP DINÁMICO
   ========================================================================== */
.catalog {
    padding: 4rem 1.5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    text-align: center;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: #777777;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E0DA;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1; /* Permite que el contenedor de texto ocupe todo el espacio vertical disponible */
}

.product-code {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.product-prices {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.price-retail {
    font-size: 0.9rem;
    color: #666;
}

.price-wholesale {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-product-wa {
    width: 100%;
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta para alineación perfecta */
    background-color: var(--dark-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-product-wa:hover {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

/* ==========================================================================
   6. FOOTER Y BOTÓN PERSISTENTE
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* ==========================================================================
   7. RESPONSIVO PARA CELULARES
   ========================================================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge {
        align-self: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   8. ESTILOS PARA EL MODAL DE IMÁGENES (LIGHTBOX)
   ========================================================================== */
.product-img-wrapper img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-img-wrapper img:hover {
    transform: scale(1.03); /* Efecto suave de zoom al pasar el cursor */
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(4px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-in-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}
/* ==========================================================================
   SECCIÓN NOSOTROS
   ========================================================================== */
.about {
    padding: 4.5rem 1.5rem;
    background-color: var(--light-bg);
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.about-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--dark-color);
    margin: 0.5rem 0 1rem 0;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Tarjetas Misión y Visión */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mv-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E0DA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.mv-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.mv-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.mv-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Bloque de Valores */
.values-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    border: 1px solid #E5E0DA;
}

.values-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.value-check {
    background-color: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item strong {
    display: block;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.value-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}