/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --red: #E31B23;
    --red-hover: #C11017;
    --black: #111111;
    --dark-gray: #222222;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray-text: #555555;
    --gray-border: #EEEEEE;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-container,
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info i { color: var(--red); }

.top-wa {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.top-mail, .footer-mail {
    text-decoration: none;
    transition: var(--transition);
}

.top-mail { color: var(--white); }
.footer-mail { color: #AAA; }
.footer-mail strong { color: var(--white); }

.top-mail:hover, 
.footer-mail:hover,
.footer-mail:hover strong {
    color: var(--red);
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container { height: 75px; }
.logo img { height: 42px; }

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

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--red); }

.btn-store {
    background-color: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-store:hover,
.btn-primary:hover { background-color: var(--red-hover); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO VENTAS & COMPONENTES REUTILIZABLES
   ========================================================================== */
.hero-sales {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
}

.hero-sales-grid,
.value-grid,
.video-sales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sales-badge {
    background-color: #FFEBEB;
    color: var(--red);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-sales-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 15px;
}

.hero-sales-content p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

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

.btn-outline {
    border: 2px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.trust-pills {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.trust-pills i, .floating-card i { color: var(--red); }

.hero-sales-image { position: relative; }
.hero-sales-image .img-main {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--red);
}

.floating-card i { font-size: 1.8rem; }

/* ==========================================================================
   CATÁLOGOS Y SECCIONES PRINCIPALES
   ========================================================================== */
.catalogs-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.catalog-box {
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.catalog-box:hover,
.product-card:hover,
.client-large-card:hover,
.contact-card:hover { box-shadow: var(--shadow-lg); }

.catalog-box:hover,
.product-card:hover,
.contact-card:hover { transform: translateY(-5px); }

.catalog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--black);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.catalog-box img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background-color: #F8F9FA;
    padding: 15px;
    display: block;
}

.catalog-details {
    padding: 20px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.catalog-details h3 { font-size: 1.3rem; margin-bottom: 8px; }
.catalog-details p { color: var(--gray-text); font-size: 0.9rem; margin-bottom: 20px; }

.catalog-buttons { display: flex; gap: 10px; }

.btn-catalog, .btn-wa-sm {
    flex: 1;
    text-align: center;
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-catalog { background-color: var(--black); }
.btn-wa-sm { background-color: #25D366; }

/* ==========================================================================
   PROPUESTA DE VALOR Y VIDEO
   ========================================================================== */
.value-banner {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0;
}

.value-text h2 { font-size: 2rem; margin-bottom: 15px; }
.value-stats { display: flex; justify-content: space-around; }
.v-stat { text-align: center; }

.v-stat h3 {
    font-size: 2.5rem;
    color: var(--red);
    font-weight: 900;
}

.video-sales {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.video-player-box video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.video-sales-info h2 { font-size: 2rem; margin-bottom: 15px; }
.video-sales-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 10px;
}

.video-sales-info .subtext {
    color: var(--gray-text);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* ==========================================================================
   PRODUCTOS, ESPECIFICACIONES Y DULCES
   ========================================================================== */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cat-pill {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-border);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cat-pill:hover {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.subsection-title {
    text-align: center;
    font-size: 1.4rem;
    margin: 30px 0 20px 0;
    color: var(--dark-gray);
}

.spec-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.spec-banner-grid.single-spec {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.spec-card, .product-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-border);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.spec-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.spec-card img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

.spec-card h4 { margin-top: 10px; color: var(--dark-gray); }

.spec-card::after {
    content: "\f00e  Haz clic para ampliar";
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    pointer-events: none;
}

.spec-card:hover::after { opacity: 1; }

/* Desactivar hover y cursor en Dulces */
#flow-pack .spec-card,
#mini-dulce .spec-card,
#chocolates .spec-card,
#paletas .spec-card { cursor: default !important; }

#flow-pack .spec-card::after,
#mini-dulce .spec-card::after,
#chocolates .spec-card::after,
#paletas .spec-card::after {
    display: none !important;
    content: none !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card { transition: var(--transition); }
.product-card:hover { border-color: var(--red); }

.product-img-box {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFA;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--black); }

#flow-pack .product-img-box img,
#mini-dulce .product-img-box img {
    border-radius: 50%;
    object-fit: cover;
    width: 140px;
    height: 140px;
}

.chocolate-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.choco-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.choco-card img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ==========================================================================
   CLIENTES Y CONTACTO
   ========================================================================== */
.clients-large-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-large-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.client-card-header h2 {
    font-size: 1.5rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-card-header h2 i { color: var(--red); }
.client-card-header p { color: var(--gray-text); font-size: 0.95rem; margin-top: 5px; }

.client-img-wrapper {
    width: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
    border-radius: 8px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 35px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--black);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.wa-card .contact-icon-box { background-color: #E8F9EE; color: #25D366; }
.mail-card .contact-icon-box { background-color: #FFEBEB; color: var(--red); }

.wa-card:hover { border-color: #25D366; }
.mail-card:hover { border-color: var(--red); }

.contact-card-info h3 { font-size: 1.2rem; color: var(--gray-text); margin-bottom: 4px; }
.contact-detail { font-size: 1.3rem; font-weight: 800; color: var(--black); margin-bottom: 8px; }

.contact-btn-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wa-card .contact-btn-text { color: #25D366; }

/* ==========================================================================
   MODAL & FOOTER
   ========================================================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo { height: 40px; margin-bottom: 15px; }
.footer-col h4 { margin-bottom: 15px; color: var(--white); }
.footer-col ul { list-style: none; }

.footer-col a {
    color: #AAA;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
    background-color: var(--black);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #777;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50px;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

.credits-link {
    color: #777;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    transition: var(--transition);
}

.credits-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.credits-link:hover { color: var(--red); }
.credits-link:hover .credits-logo { opacity: 0.8; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
    .hero-sales-grid,
    .value-grid,
    .video-sales-grid { grid-template-columns: 1fr; }
    .hero-sales-content h1 { font-size: 2.2rem; }
    .floating-card { display: none; }
}

@media (max-width: 768px) {
    .top-info span:nth-child(1) { display: none; }
    .mobile-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; gap: 15px; }

    .chocolate-specs-grid { grid-template-columns: 1fr; }
    .client-large-card { padding: 15px; }
    .client-card-header h2 { font-size: 1.2rem; }
}