/**
 * HERMANOS GARCÍA — GLOBAL BASE STYLES (HEADER, FOOTER & TYPOGRAPHY)
 */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/outfit/outfit-latin-variable.woff2') format('woff2');
}

:root {
    --hg-navy: #071d45;
    --hg-navy-dark: #04122d;
    --hg-blue: #0c2b80;
    --hg-gold: #f2b604;
    --hg-gold-dark: #e5aa00;
    --hg-bg: #f8fafc;
    --hg-white: #ffffff;
    --hg-text: #334155;
    --hg-muted: #64748b;
    --hg-border: rgba(7, 29, 69, 0.08);
    --hg-radius-sm: 10px;
    --hg-radius-md: 16px;
    --hg-radius-lg: 24px;
    --hg-radius-full: 9999px;
    --hg-font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--hg-font-sans);
    color: var(--hg-text);
    background-color: var(--hg-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body.sh-menu-open {
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.standalone-home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   BOTONES GLOBALES
   -------------------------------------------------------------------------- */
.sh-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2b604 0%, #e5aa00 100%);
    color: var(--hg-navy);
    font-family: var(--hg-font-sans);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 11px 26px;
    border-radius: var(--hg-radius-full);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(242, 182, 4, 0.35);
    border: none;
    cursor: pointer;
}

.sh-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 182, 4, 0.48);
    background: linear-gradient(135deg, #ffc414 0%, #f2b604 100%);
    color: var(--hg-navy);
}

.sh-btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c2b80 0%, #081f60 100%);
    color: var(--hg-white);
    font-family: var(--hg-font-sans);
    font-weight: 750;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    padding: 10px 22px;
    border-radius: var(--hg-radius-full);
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.sh-btn-blue:hover {
    background: linear-gradient(135deg, #1038a3 0%, #0c2b80 100%);
    transform: translateY(-2px);
    color: #fff;
}

/* --------------------------------------------------------------------------
   HEADER & MEGA NAV
   -------------------------------------------------------------------------- */
.sh-header {
    background: #ffffff;
    border-bottom: 1px solid var(--hg-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(7, 29, 69, 0.04);
}

.sh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.sh-header .sh-logo-link img {
    height: 48px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.sh-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-nav-list a {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hg-navy);
    transition: color 0.2s ease;
}

.sh-nav-list a:hover {
    color: var(--hg-gold);
}

.sh-nav-caret {
    margin-left: 3px;
    font-size: 0.7rem;
}

/* DESPLEGABLE MEGAMENÚ */
.menu-item-has-children {
    position: relative;
}

.sh-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(7, 29, 69, 0.14);
    border: 1px solid var(--hg-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    width: 680px;
    z-index: 110;
}

.menu-item-has-children:hover .sh-mega-dropdown,
.menu-item-has-children:focus-within .sh-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sh-services-mega { width: 580px; }
.sh-services-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-mega-intro { display: flex; flex-direction: column; gap: 3px; margin-bottom: 15px; padding: 0 12px 14px; border-bottom: 1px solid var(--hg-border); }
.sh-mega-intro span { color: var(--hg-gold-dark); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sh-mega-intro strong { color: var(--hg-navy); font-size: 1rem; }
.sh-services-mega .sh-mega-col a { justify-content: space-between; }
.sh-mega-arrow { color: var(--hg-gold-dark); font-size: 1rem; }
.sh-mega-all-link { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; padding: 11px 14px !important; border-radius: 10px; background: var(--hg-navy); color: #fff !important; font-size: .84rem !important; }
.sh-mega-all-link:hover { background: var(--hg-blue); color: #fff !important; }

.sh-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sh-mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-mega-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--hg-navy);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.sh-mega-col a:hover {
    background: rgba(7, 29, 69, 0.05);
    color: var(--hg-gold);
    transform: translateX(3px);
}

/* BUSCADOR DE CABECERA */
.sh-header-search {
    position: relative;
    width: 240px;
}

.sh-search-input {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 1px solid var(--hg-border);
    padding: 0 40px 0 16px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    background: #f8fafc;
}

.sh-search-input:focus {
    border-color: var(--hg-gold);
    background: #ffffff;
}

.sh-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hg-navy);
    padding: 0;
    display: flex;
}

/* CARRITO BADGE */
.sh-account-btn {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hg-border);
    border-radius: 50%;
    background: #f8fafc;
    color: var(--hg-navy);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.sh-account-btn:hover,
.sh-account-btn:focus-visible { border-color: var(--hg-gold); background: #fff; color: var(--hg-navy); transform: translateY(-1px); }
.sh-account-status { position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; }

.sh-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hg-gold);
    color: var(--hg-navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 3px 10px rgba(242, 182, 4, 0.3);
}

.sh-cart-count-badge {
    background: var(--hg-navy);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
}

.sh-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* NAVEGACIÓN MÓVIL GLOBAL COMPACTA Y MODERNA */
.sh-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(4, 18, 45, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sh-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sh-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 40px);
    padding: 20px 24px 24px;
    overflow-y: auto;
    background: #ffffff;
    border-bottom: 3px solid var(--hg-gold);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 20px 50px rgba(4, 18, 45, 0.25);
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.32s;
    contain: layout paint;
}

.sh-mobile-drawer.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.sh-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hg-border);
}

.sh-mobile-drawer .sh-mobile-logo-link img {
    width: auto;
    height: 44px;
    max-width: none;
}

.sh-mobile-close-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(7, 29, 69, 0.12);
    border-radius: 50%;
    background: var(--hg-bg);
    color: var(--hg-navy);
    font: 400 1.6rem/1 var(--hg-font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sh-mobile-close-btn:hover {
    background: var(--hg-navy);
    color: var(--hg-gold);
    transform: rotate(90deg);
}

.sh-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-mobile-nav-list > li > a,
.sh-mobile-services-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 4px;
    border: none;
    border-bottom: 1px solid rgba(7, 29, 69, 0.07);
    background: transparent;
    color: var(--hg-navy);
    font-family: var(--hg-font-sans);
    font-size: 0.98rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sh-mobile-nav-list > li > a:hover,
.sh-mobile-nav-list > li > a:focus-visible,
.sh-mobile-services-toggle:hover {
    color: var(--hg-gold-hover);
}

/* DESPLEGABLE SERVICIOS ACCORDION */
.sh-mobile-services {
    border-bottom: 1px solid rgba(7, 29, 69, 0.07);
}

.sh-mobile-services .sh-mobile-services-toggle {
    border-bottom: none;
    padding: 13px 4px;
}

.sh-mobile-caret {
    color: var(--hg-gold-dark);
    transition: transform 0.28s ease;
    flex-shrink: 0;
}

.sh-mobile-services.is-open .sh-mobile-caret {
    transform: rotate(180deg);
}

.sh-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.3s ease;
    margin: 0;
}

.sh-mobile-services.is-open .sh-mobile-submenu {
    max-height: 500px;
    opacity: 1;
    margin: 4px 0 12px;
}

.sh-mobile-submenu ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 8px 12px;
    list-style: none;
    background: #f8fafc;
    border-left: 3.5px solid var(--hg-gold);
    border-radius: 12px;
}

.sh-mobile-submenu ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    border: none;
    border-radius: 8px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 550;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sh-mobile-submenu ul li a:hover {
    background: #ffffff;
    color: var(--hg-navy);
    transform: translateX(3px);
}

.sh-sub-arrow {
    color: var(--hg-gold-dark);
    font-size: 0.95rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sh-mobile-submenu ul li a:hover .sh-sub-arrow {
    transform: translateX(2px);
    opacity: 1;
}

.sh-mobile-all-services {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(7, 29, 69, 0.08);
}

.sh-mobile-all-services a {
    color: var(--hg-blue) !important;
    font-size: 0.84rem !important;
}

.sh-mobile-drawer-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--hg-border);
}

.sh-mobile-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sh-mobile-wa-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   FOOTER CORPORATIVO OFICIAL
   -------------------------------------------------------------------------- */
.sh-footer {
    background-color: var(--hg-navy);
    color: var(--hg-white);
    padding: 48px 0 24px;
    border-top: 4px solid var(--hg-gold);
    position: relative;
    font-family: var(--hg-font-sans);
    margin-top: 64px;
}

.sh-footer-grid {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.sh-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sh-footer .sh-footer-logo-img {
    width: 84px;
    height: 84px;
    max-width: none;
    object-fit: contain;
    display: block;
}

.sh-footer-logo-wrap {
    display: flex;
    width: 188px;
    justify-content: center;
}

.sh-social-links-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sh-social-link:hover {
    background: var(--hg-gold);
    color: var(--hg-navy);
    transform: translateY(-2px);
}

.sh-social-link svg {
    fill: currentColor;
}

.sh-footer-col h4 {
    font-family: var(--hg-font-sans);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hg-white);
    margin: 0 0 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sh-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.sh-footer-col ul li a:hover {
    color: var(--hg-gold);
}

.sh-footer-copyright-bar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
}

.sh-martos-link {
    color: #cbd5e1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.sh-martos-link:hover {
    color: var(--hg-gold);
}

/* BOTÓN WHATSAPP VERDE OFICIAL FIJO */
.sh-float-whatsapp {
    position: fixed;
    bottom: 88px;
    right: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sh-float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* BOTÓN VOLVER ARRIBA FLOTANTE INDEPENDIENTE */
.sh-float-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--hg-navy);
    color: var(--hg-gold);
    border: 2px solid var(--hg-gold);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 997;
    box-shadow: 0 4px 16px rgba(7, 29, 69, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sh-float-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sh-float-scroll-top:hover {
    background-color: var(--hg-gold);
    color: var(--hg-navy);
    transform: scale(1.1) translateY(-2px);
}

/* RESPONSIVO DE PIE DE PÁGINA */
.sh-burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.sh-burger-line {
    width: 24px;
    height: 2.5px;
    background: var(--hg-navy);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .sh-nav { display: none; }
    .sh-header-search { display: none; }
    .sh-burger-btn { display: flex; }
    .sh-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .standalone-home-container { padding: 0 16px; }
    .sh-header-inner { height: 70px; gap: 12px; }
    .sh-header .sh-logo-link img { height: 42px; }
    .sh-header-actions { gap: 7px; }
    .sh-account-btn { width: 36px; height: 36px; flex-basis: 36px; }
    .sh-cart-btn { min-width: 42px; padding: 8px 10px; }
    .sh-mobile-drawer { padding: 20px 18px; }
    .sh-footer-grid { grid-template-columns: 1fr; }
    .sh-footer-brand-col { align-items: center; text-align: center; }
    .sh-footer-logo-wrap { width: auto; }
    .sh-footer-col { text-align: center; }
    .sh-social-links-row { justify-content: center; }
    .sh-footer-copyright-bar { flex-direction: column; gap: 12px; text-align: center; }
    .sh-float-whatsapp { right: 16px; bottom: 78px; }
    .sh-float-scroll-top { right: 16px; bottom: 18px; }
}

@media (max-width: 370px) {
    .standalone-home-container { padding-right: 12px; padding-left: 12px; }
    .sh-header .sh-logo-link img { height: 38px; }
    .sh-header-inner { gap: 8px; }
    .sh-header-actions { gap: 5px; }
    .sh-cart-btn { padding-right: 8px; padding-left: 8px; }
}
