/*
Theme Name: Astra Child
Theme URI: https://comenzar.com.co/
Template: astra
Author: Comenzar SAS
Description: Tema premium hijo enfocado en conversión, seguridad y Pixel-Perfect UI Responsivo.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: astra-child
*/

/* =======================================================
   💎 TIPOGRAFÍA & VARIABLES CSS BASE (ROOT)
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --vp-color-brand: #0A3D91;
    --vp-color-accent: #FF6600;
    --vp-color-background: #F9FAFB;
    --vp-color-surface: #FFFFFF;
    --vp-color-text-main: #111827;
    --vp-color-text-muted: #6B7280;

    --vp-spacing-sm: 8px;
    --vp-spacing-md: 16px;
    --vp-spacing-lg: 24px;

    --vp-border-radius: 8px;
    --vp-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --vp-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --vp-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tipografía global (Plus Jakarta Sans) */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Peso y tracking para encabezados (SIN forzar color) */
h1, h2, h3 {
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

/* =======================================================
   💎 GLASSMORPHISM (CABECERA)
   ======================================================= */
.ast-primary-header-bar, .site-header, .ast-fixed-header {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--vp-transition);
}

/* =======================================================
   💎 BOTONES PREMIUM (UNIFICADO - Sin forzar color)
   ======================================================= */
.elementor-button, .ast-button, .ast-custom-button,
button, .button, input[type="submit"] {
    border-radius: var(--vp-border-radius) !important;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    transition: var(--vp-transition) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Hover: Elevación + Resplandor */
.elementor-button:hover, .ast-button:hover, .ast-custom-button:hover,
button:hover, .button:hover, input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--vp-shadow-hover) !important;
    filter: brightness(1.05);
}

/* =======================================================
   💎 TARJETAS DE PRODUCTO / SERVICIOS
   ======================================================= */
ul.products li.product, .elementor-widget-image-box {
    background: var(--vp-color-surface);
    border-radius: var(--vp-border-radius);
    transition: var(--vp-transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--vp-shadow-soft);
    overflow: hidden;
}

ul.products li.product:hover, .elementor-widget-image-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--vp-shadow-hover);
    border-color: rgba(0, 0, 0, 0.05);
}

/* =======================================================
   🎯 ALINEACIÓN DE ICONOS SVG EN MENÚ ASTRA
   ======================================================= */
.ast-builder-menu .menu-item > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ast-builder-menu .menu-item > a > img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    margin: 0 !important;
    /* SIN filter:invert para evitar iconos invisibles sobre fondo blanco */
}

/* =======================================================
   💎 TIPOGRAFÍA HERO (Sin forzar color - Elementor lo controla)
   ======================================================= */
.elementor-widget-heading h1.elementor-heading-title {
    font-weight: 800 !important;
    letter-spacing: -1px !important;
}

/* =======================================================
   📱 RESPONSIVIDAD (MEDIA QUERIES & TOUCH TARGETS)
   ======================================================= */

/* MÓVIL (Max 767px) */
@media (max-width: 767px) {
    button, .button, .elementor-button, a.menu-link,
    .ast-builder-menu-mobile .menu-item > a {
        min-height: 44px !important;
        min-width: 44px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ast-mobile-menu-buttons svg, .site-header-cart svg {
        width: 24px;
        height: 24px;
        padding: 10px;
        box-sizing: content-box;
    }

    h1 { font-size: 36px !important; line-height: 1.15 !important; }
    h2 { font-size: 28px !important; line-height: 1.25 !important; }
}

/* TABLET (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    h1 { font-size: 46px !important; }
    .elementor-widget-image-box {
        padding: 15px !important;
    }
}

/* DESKTOP (Min 1025px) */
@media (min-width: 1025px) {
    h1 { font-size: 64px !important; }
}
