/*
Theme Name:     Astra Supermercado Cristalima
Theme URI:      https://cristalima.com
Description:    Tema optimizado para supermercado virtual tipo Olímpica / La Rebaja con Kit de Marca Verde, Licores, Nequi, Daviplata, Bre-B y Tarjetas.
Author:         Cristalima Team
Template:       astra
Version:        2.0.0
*/

/* ========================================================
   KIT DE MARCA: VERDE SUPERMERCADO CRISTALIMA
   ======================================================== */
:root {
    --cristalima-green: #059669;
    --cristalima-green-dark: #047857;
    --cristalima-green-forest: #064e3b;
    --cristalima-green-light: #f0fdf4;
    --cristalima-green-border: #a7f3d0;
    --cristalima-yellow: #f59e0b;
    --cristalima-yellow-light: #fef3c7;
    --cristalima-whatsapp: #25D366;
    --cristalima-whatsapp-dark: #1ebc59;
    --ast-global-color-0: #059669 !important;
    --ast-global-color-1: #047857 !important;
    --ast-global-color-2: #064e3b !important;
    --ast-global-color-5: #f0fdf4 !important;
}

/* Enlaces y botones globales */
a {
    color: var(--cristalima-green);
}
a:hover {
    color: var(--cristalima-green-dark);
}

/* 1. Barra Superior Informativa Verde */
.cristalima-topbar {
    background: #064e3b;
    color: #ffffff;
    font-size: 13px;
    padding: 9px 15px;
    border-bottom: 3px solid var(--cristalima-yellow);
}
.cristalima-topbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cristalima-topbar-item a {
    color: var(--cristalima-yellow) !important;
    text-decoration: underline;
    font-weight: 700;
}
@media (max-width: 768px) {
    .cristalima-hide-mobile {
        display: none;
    }
    .cristalima-topbar-content {
        justify-content: center;
        text-align: center;
    }
}

/* 2. Buscador Prominente en Cabecera (Estilo Olímpica / La Rebaja) */
.cristalima-search-bar-wrap {
    background: #ffffff;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}
.cristalima-search-inner {
    max-width: 850px;
    margin: 0 auto;
}
.cristalima-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid var(--cristalima-green);
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.12);
}
.search-icon-decor {
    font-size: 17px;
    margin-right: 8px;
    color: var(--cristalima-green);
}
.cristalima-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 15px;
    color: #1e293b;
    padding: 8px 0 !important;
    box-shadow: none !important;
}
.cristalima-search-submit {
    background: var(--cristalima-green) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cristalima-search-submit:hover {
    background: var(--cristalima-green-dark) !important;
}

/* 3. Hero y Banners de la Página de Inicio */
.cristalima-home-hero {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 50px 30px;
    margin: 20px auto 30px;
    max-width: 1200px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fef08a;
}
.cristalima-home-hero h1 {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.25;
}
.cristalima-home-hero p {
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 25px;
    color: #e6fffa;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--cristalima-yellow) !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn-hero-primary:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.btn-hero-wa {
    background: #25D366 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 13px 26px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: transform 0.2s ease;
}
.btn-hero-wa:hover {
    background: #1ebc59 !important;
    transform: translateY(-2px);
}

/* 4. Segmentación por Categorías Estilo Lista */
.cristalima-categories-section {
    max-width: 1200px;
    margin: 30px auto;
}
.section-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--cristalima-green-forest) !important;
    margin-bottom: 6px !important;
}
.section-subtitle {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 15px;
}
.categories-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 15px;
}
.category-list-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.category-list-card:hover {
    border-color: var(--cristalima-green);
    transform: translateX(4px);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.12);
}
.category-list-card.highlight-licores {
    border-color: #fde68a;
    background: #fffbeb;
}
.cat-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    background: var(--cristalima-green-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.highlight-licores .cat-icon {
    background: #fef3c7;
}
.cat-info {
    flex: 1;
}
.cat-info h3 {
    margin: 0 0 3px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--cristalima-green-forest) !important;
}
.cat-info span {
    font-size: 13px;
    color: #64748b;
    display: block;
}
.cat-arrow {
    font-size: 18px;
    color: var(--cristalima-green);
    font-weight: 700;
}

/* 5. Tarjetas de Productos Estilo Supermercado Verde */
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px !important;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.12);
    border-color: var(--cristalima-green-border);
}
.woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--cristalima-green-forest) !important;
    margin: 10px 0 !important;
    min-height: 40px;
}
.woocommerce ul.products li.product .price {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--cristalima-green) !important;
    margin-bottom: 12px !important;
}
.woocommerce ul.products li.product .button.add_to_cart_button {
    background: var(--cristalima-green) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    width: 100%;
    margin-top: 6px;
    padding: 11px !important;
    transition: background 0.2s ease;
}
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
    background: var(--cristalima-green-dark) !important;
}

/* 6. Bloque de Beneficios Supermercado */
.cristalima-features-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px 20px;
    background: var(--cristalima-green-light);
    border: 1px solid var(--cristalima-green-border);
    border-radius: 14px;
}
.feature-box {
    text-align: center;
}
.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.feature-box h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--cristalima-green-forest);
}
.feature-box p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* 7. Zona Especial de Licores */
.licores-page-header {
    margin-bottom: 30px;
}
.licores-warning-banner {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.warning-icon {
    font-size: 32px;
}
.warning-text strong {
    color: #991b1b;
    font-size: 15px;
}
.warning-text p {
    margin: 4px 0 0;
    color: #7f1d1d;
    font-size: 14px;
    font-weight: 600;
}
.licores-intro h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--cristalima-green-forest) !important;
}

/* 8. Botón de Pedido por WhatsApp */
.wa-order-button {
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    margin-top: 10px;
    width: 100%;
}
.wa-order-button:hover {
    background: #1ebc59 !important;
    color: #ffffff !important;
}
.wa-cart-button {
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 14px !important;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
}
.wa-cart-button:hover {
    background: #1ebc59 !important;
    color: #ffffff !important;
}

/* 9. Caja de Pago Nequi / Daviplata / Bre-B / Tarjetas en "Pedido Recibido" */
.cristalima-payment-box {
    background: #ffffff;
    border: 2px solid var(--cristalima-green);
    border-radius: 14px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.1);
}
.cristalima-payment-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.cristalima-payment-header h3 {
    margin: 0 0 6px 0;
    color: var(--cristalima-green-forest);
    font-size: 22px;
    font-weight: 800;
}
.cristalima-payment-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}
.cristalima-qr-wrap {
    text-align: center;
    background: var(--cristalima-green-light);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed var(--cristalima-green);
}
.cristalima-qr-img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.cristalima-qr-label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cristalima-green-forest);
}
.cristalima-account-info {
    flex: 1;
    min-width: 250px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}
.info-title {
    color: #64748b;
    font-weight: 600;
}
.info-value {
    color: #1e293b;
    text-align: right;
}
.highlight-num {
    font-size: 18px;
    color: var(--cristalima-green-forest) !important;
}
.total-val {
    font-size: 19px;
    color: var(--cristalima-green) !important;
}
.btn-copy {
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 600;
}
.btn-copy:hover {
    background: #cbd5e1;
}
.cristalima-whatsapp-action {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    margin-top: 15px;
}
.action-hint {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #166534;
}
.btn-whatsapp-comprobante {
    display: inline-block;
    background: #25D366 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn-whatsapp-comprobante:hover {
    background: #1ebc59 !important;
    transform: scale(1.03);
}

/* 10. Sección de Suscripción / Newsletter */
.cristalima-newsletter-section {
    background: #064e3b;
    color: #ffffff;
    padding: 35px 20px;
    border-top: 4px solid var(--cristalima-yellow);
}
.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.newsletter-text h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 5px 0 !important;
}
.newsletter-text p {
    margin: 0;
    color: #a7f3d0;
    font-size: 14px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.newsletter-form input {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    width: 320px;
    max-width: 100%;
    outline: none;
}
.newsletter-form button {
    background: var(--cristalima-yellow) !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}
.newsletter-form button:hover {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* 11. Footer Completo de Supermercado */
.cristalima-footer-full {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 20px 0;
    font-size: 14px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    padding-bottom: 40px;
}
.footer-col-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--cristalima-green);
    padding-bottom: 8px;
    display: inline-block;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.footer-links, .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contact-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-links a, .footer-contact-list a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover, .footer-contact-list a:hover {
    color: #34d399;
}
.footer-social-box {
    margin-top: 15px;
}
.social-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}
.social-icons {
    display: flex;
    gap: 8px;
}
.social-icon {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    color: #ffffff !important;
}
.social-icon.fb {
    background: #1877f2;
}
.social-icon.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon.wa {
    background: #25D366;
}
.footer-legal-badge {
    background: #1e293b;
    border-left: 3px solid var(--cristalima-yellow);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 15px;
    line-height: 1.4;
}
.footer-legal-badge p {
    margin: 0;
    color: #cbd5e1;
}

/* Badges de Medios de Pago */
.payment-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.pay-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}
.badge-nequi { background: #200020; border: 1px solid #4a004a; }
.badge-daviplata { background: #e60000; }
.badge-breb { background: #003366; border: 1px solid #0055a5; }
.badge-bancolombia { background: #fdcf00; color: #000000 !important; }
.badge-card { background: #1e3a8a; }
.badge-pse { background: #0284c7; }
.badge-cod { background: #166534; }

/* Barra final de Copyright */
.footer-bottom-bar {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
.footer-bottom-bar p {
    margin: 0;
}

/* 12. Páginas Legales e Institucionales */
.legal-page-wrap {
    max-width: 900px;
    margin: 30px auto 50px;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    line-height: 1.7;
}
.legal-page-wrap h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--cristalima-green-forest) !important;
    margin-bottom: 8px !important;
}
.legal-page-wrap h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--cristalima-green) !important;
    margin-top: 25px !important;
}
.legal-page-wrap .lead {
    font-size: 16px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 20px;
}
.legal-page-wrap .updated {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Grilla de Canales de Contacto */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.contact-channel-card {
    background: var(--cristalima-green-light);
    border: 1px solid var(--cristalima-green-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.channel-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.contact-channel-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--cristalima-green-forest);
}
.channel-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 8px;
}
.channel-btn.wa-btn {
    background: #25D366;
    color: #ffffff !important;
}
.channel-btn.mail-btn {
    background: var(--cristalima-green);
    color: #ffffff !important;
}

/* 13. Aviso Flotante de Cookies */
.cristalima-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #f1f5f9;
    padding: 16px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    font-size: 13px;
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.cookie-content a {
    color: #34d399;
    text-decoration: underline;
}
.btn-cookie-ok {
    background: var(--cristalima-green) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
}
.btn-cookie-ok:hover {
    background: var(--cristalima-green-dark) !important;
}

/* 14. Botón Flotante de WhatsApp */
.cristalima-floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, background 0.2s ease;
}
.cristalima-floating-wa:hover {
    background: #1ebc59;
    transform: scale(1.05);
}
@media (max-width: 540px) {
    .floating-wa-text {
        display: none;
    }
    .cristalima-floating-wa {
        padding: 14px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}
