/*
Theme Name: Astra Child - IMEGAS Chile
Theme URI: https://imegas.cl/
Description: Tema hijo oficial de Astra adaptado exclusivamente para IMEGAS Chile. Especialistas en equipamiento gastronómico asiático industrial: cocinas Wok a gas con quemador Jet Flame, inducción eléctrica de alta potencia y freidoras industriales. 100% compatible con Sello SEC y normativas técnicas internacionales.
Author: IMEGAS Dev
Author URI: https://imegas.cl/
Template: astra
Version: 1.0.4
Text Domain: astra-child-imegas
*/

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

/* IMEGAS Industrial Hero Pattern */
.hero-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#ea580c 0.5px, transparent 0.5px), radial-gradient(#ea580c 0.5px, #f8fafc 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Sticky Offset Compensation for Fixed Navbar */
.scroll-mt-28 {
    scroll-margin-top: 7rem;
}

/* ==========================================================================
   ASTRA GLOBAL COLOR SYSTEM OVERRIDES (Brand Orange Palette)
   ========================================================================== */
:root {
    --ast-global-color-0: #ea580c !important; /* IMEGAS Primary Orange */
    --ast-global-color-1: #c2410c !important; /* Dark Orange Hover / Active */
    --ast-global-color-2: #0f172a !important; /* Dark Slate Base */
    --ast-global-color-3: #64748b !important; /* Slate Muted */
    --ast-global-color-4: #f8fafc !important; /* Light Background */
    --ast-global-color-5: #ffffff !important; /* Pure White */
    --ast-global-color-6: #f1f5f9 !important; /* Border / Light Gray */
    --ast-global-color-7: #0f172a !important;
    --ast-global-color-8: #ea580c !important;
}

/* ==========================================================================
   ASTRA SCROLL-TO-TOP BUTTON (Completely Disabled / Hidden)
   ========================================================================== */
#ast-scroll-top,
.ast-scroll-top-icon,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ==========================================================================
   BUTTON & TAB HOVER OVERRIDES (Eliminates Astra blue hover states)
   ========================================================================== */
/* Generic buttons: force brand orange background and high-contrast white text */
button:hover,
button:focus,
.button:hover,
.button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.ast-button:hover,
.ast-button:focus,
.ast-custom-button:hover,
.ast-custom-button:focus {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

/* Solid orange buttons hover smoothly to darker orange with crisp white text */
button.bg-brand-orange:hover,
button.bg-brand-orange:focus,
a.bg-brand-orange:hover,
a.bg-brand-orange:focus,
.bg-brand-orange:hover,
.bg-brand-orange:focus {
    background-color: #c2410c !important;
    color: #ffffff !important;
    border-color: #c2410c !important;
}

/* Exceptions: Preserve transparent or custom hover for special utility buttons */
button.bg-transparent:hover,
button.bg-transparent:focus,
button[class*="bg-transparent"]:hover,
button[class*="bg-transparent"]:focus,
#mobile-menu-btn:hover,
#mobile-menu-btn:focus {
    background-color: transparent !important;
    color: #ea580c !important;
}

/* Modal close button hover (gray surface with orange icon) */
button[onclick*="closeModal"]:hover,
button[onclick*="closeRepuestoModal"]:hover {
    background-color: #f1f5f9 !important;
    color: #ea580c !important;
}

/* Gallery thumbnails in product single templates */
button.gallery-thumb {
    background-color: #ffffff !important;
}
button.gallery-thumb:hover {
    background-color: #ffffff !important;
    border-color: #ea580c !important;
}
button.gallery-thumb.active {
    border-color: #ea580c !important;
}

/* Video selector buttons in product templates */
button.video-btn {
    transition: all 0.2s ease-in-out !important;
}
button.video-btn.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}
button.video-btn:not(.active):hover {
    background-color: #fff7ed !important;
    color: #ea580c !important;
    border-color: #ea580c !important;
}

/* Technical badge / modal trigger buttons */
button[onclick*="openModal"]:hover {
    background-color: #fff7ed !important;
    color: #ea580c !important;
    border-color: #ea580c !important;
}

/* Text-only orange buttons */
button.text-brand-orange:hover,
button.text-brand-orange:focus {
    background-color: transparent !important;
    color: #c2410c !important;
}

/* ==========================================================================
   PRODUCT CATALOG TABS (template-productos.php)
   ========================================================================== */
.imegas-tab-btn {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}
.imegas-tab-btn:hover,
.imegas-tab-btn:focus {
    background-color: #fff7ed !important; /* Soft warm orange tint */
    color: #ea580c !important;
    border-color: #ea580c !important;
}
.imegas-tab-btn.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.25), 0 2px 4px -2px rgba(234, 88, 12, 0.25) !important;
}
.imegas-tab-btn.active:hover,
.imegas-tab-btn.active:focus {
    background-color: #c2410c !important; /* Deeper orange on active hover */
    color: #ffffff !important;
    border-color: #c2410c !important;
}

/* WordPress Native Menu Reset & Styling */
.imegas-nav-desktop,
.imegas-nav-mobile {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.imegas-nav-desktop {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

@media (min-width: 1280px) {
    .imegas-nav-desktop {
        gap: 2rem !important;
    }
}

.imegas-nav-desktop li,
.imegas-nav-mobile li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.imegas-nav-desktop a {
    text-decoration: none !important;
    display: inline-block !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.5rem !important;
    white-space: nowrap !important;
    color: #0f172a !important;
    transition: all 0.15s ease-in-out !important;
}

@media (min-width: 1280px) {
    .imegas-nav-desktop a {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
}

.imegas-nav-desktop a:hover {
    background-color: #f1f5f9 !important;
    color: #ea580c !important;
}

.imegas-nav-mobile a {
    text-decoration: none !important;
}

/* Menu active state helper */
.current-menu-item > a,
.current_page_item > a {
    color: #ea580c !important;
    font-weight: 700 !important;
    background-color: rgba(254, 242, 242, 0.7) !important;
}

/* Force pure white and bold for CTA sections over dark backgrounds */
.bg-slate-900 h2,
.bg-slate-950 h2,
section.bg-slate-900 h2,
section.bg-slate-950 h2,
.bg-slate-900 h2.text-white,
section.bg-slate-900 h2.text-white {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   FORM CONTROLS & PLACEHOLDERS FIX (Prevents Astra height clipping & styling)
   ========================================================================== */
.ast-container input[type="text"],
.ast-container input[type="email"],
.ast-container input[type="tel"],
.ast-container input[type="password"],
.ast-container input[type="number"],
.ast-container select,
.ast-container textarea,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea,
#contactoForm input,
#contactoForm select,
#contactoForm textarea,
#servicioForm input,
#servicioForm select,
#servicioForm textarea,
.imegas-form-control {
    height: auto !important;
    min-height: 48px !important;
    line-height: 1.5 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

#contactoForm input:focus,
#contactoForm select:focus,
#contactoForm textarea:focus,
#servicioForm input:focus,
#servicioForm select:focus,
#servicioForm textarea:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form select:focus,
form textarea:focus {
    outline: none !important;
    border-color: #ea580c !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

#contactoForm textarea,
#servicioForm textarea,
form textarea {
    min-height: 130px !important;
    height: auto !important;
    line-height: 1.6 !important;
    resize: vertical !important;
}

/* Custom styled select with clear SVG dropdown arrow */
#contactoForm select,
#servicioForm select,
form select,
select.imegas-select {
    padding-right: 2.75rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.85rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem 1.25rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
}

/* Crisp, legible, high-contrast placeholders */
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* Ensure options inside select render cleanly */
select option {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.9375rem !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
}


