/**
 * OR64 - HEADER PREMIUM v3.0
 * Estilo Apple/Samsung - Premium, sofisticado, coherente
 * Autor: Refactored for true premium experience
 */

:root {
    --header-height: 80px;
    --header-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   HEADER - Estados contextuales premium
   ============================================== */
.hp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition:
        background var(--header-transition),
        box-shadow var(--header-transition),
        border-color var(--header-transition);
    border-bottom: 1px solid transparent;
}

/* Estado: Scrolled (degradado azul industrial) */
.hp.is-scrolled {
    background: #222222;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Estado: Megamenu abierto (dark luxe) */
.hp.is-mega-open {
    background: #0f0f13;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.hp__container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==============================================
   LOGO - Sistema dual con transición
   ============================================== */
.hp__logo {
    position: relative;
    z-index: 10;
}

.hp__logo-img {
    height: 62px;
    width: auto;
    transition: filter var(--header-transition), opacity var(--header-transition);
}

/* Logo SVG ya es blanco con acentos naranja, no necesita filtro */

/* Mega abierto: logo sigue blanco (fondo oscuro) */

/* ==============================================
   NAV
   ============================================== */
.hp__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 40px;
}

.hp__nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--header-transition);
}

/* Underline animado premium */
.hp__nav-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp__nav-item:hover::after,
.hp__nav-item.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mega abierto: nav sigue blanco (fondo oscuro) */
.hp.is-mega-open .hp__nav-item {
    color: rgba(255, 255, 255, 0.7);
}

.hp__nav-item.is-active {
    color: #fff;
}

.hp.is-mega-open .hp__nav-item.is-active {
    color: #fff;
}

.hp__nav-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.hp__nav-item:hover .hp__nav-arrow {
    opacity: 1;
}

.hp__nav-item.is-active .hp__nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Nav item que es enlace directo (sin dropdown) */
.hp__nav-item--link {
    cursor: pointer;
}

/* ==============================================
   ACTIONS
   ============================================== */
.hp__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp__cta-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #e8732e;
    text-decoration: none;
    transition: background 0.2s;
}

.hp__cta-btn:hover {
    background: #d4622a;
}

.hp__action-btn,
.hp__lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--header-transition);
}

.hp__action-btn:hover,
.hp__lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Mega abierto: botones siguen claros (fondo oscuro) */
.hp.is-mega-open .hp__action-btn,
.hp.is-mega-open .hp__lang-btn {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.hp.is-mega-open .hp__action-btn:hover,
.hp.is-mega-open .hp__lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.hp__action-btn svg,
.hp__lang-btn svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp__action-btn.is-active svg,
.hp__lang-btn.is-active svg {
    transform: rotate(180deg);
}

/* ==============================================
   HAMBURGER
   ============================================== */
.hp__hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--header-transition);
}

.hp__hamburger:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Mega abierto: hamburger sigue claro (fondo oscuro) */
.hp.is-mega-open .hp__hamburger {
    border-color: rgba(255, 255, 255, 0.2);
}

.hp.is-mega-open .hp__hamburger:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.hp__hamburger-box {
    position: relative;
    width: 18px;
    height: 12px;
}

.hp__hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp.is-mega-open .hp__hamburger-line {
    background: #fff;
}

.hp__hamburger-line:nth-child(1) { top: 0; }
.hp__hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hp__hamburger-line:nth-child(3) { bottom: 0; }

.hp__hamburger.is-active .hp__hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.hp__hamburger.is-active .hp__hamburger-line:nth-child(2) {
    opacity: 0;
}
.hp__hamburger.is-active .hp__hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ==============================================
   MEGAMENU - Industrial, 100vh, sin curvas
   ============================================== */
.hp-mega {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #0f0f13;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.hp-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-mega__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 48px 60px;
    min-height: calc(100vh - var(--header-height) - 140px);
    display: flex;
    flex-direction: column;
}

.hp-mega__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    transition: opacity 0.15s ease;
}

.hp-mega__content > * {
    width: 100%;
}

/* ==============================================
   STAGGER ANIMATIONS - Contenido premium
   ============================================== */
/* ==============================================
   STAGGER ANIMATIONS — Entrada individual por card
   ============================================== */

/* Estado base: invisible */
.hp-mega__header,
.hp-mega__column,
.hp-mega__service,
.hp-mega__grid-item,
.hp-mega__list-item,
.hp-mega__lang-card,
.hp-mega__tabs,
.hp-mega__prod-card,
.hp-mega__sector-card,
.hp-mega__footer {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.hp-mega.is-open .hp-mega__header {
    opacity: 1; transform: translateY(0); transition-delay: 0.04s;
}

/* Tabs */
.hp-mega.is-open .hp-mega__tabs {
    opacity: 1; transform: translateY(0); transition-delay: 0.08s;
}

/* Product cards — stagger individual */
.hp-mega.is-open .hp-mega__prod-card:nth-child(1)  { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(2)  { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(3)  { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(4)  { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(5)  { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(6)  { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(7)  { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(8)  { opacity: 1; transform: translateY(0); transition-delay: 0.38s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(9)  { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.46s; }
.hp-mega.is-open .hp-mega__prod-card:nth-child(n+11) { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }

/* Service cards — stagger */
.hp-mega.is-open .hp-mega__service:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.hp-mega.is-open .hp-mega__service:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hp-mega.is-open .hp-mega__service:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.hp-mega.is-open .hp-mega__service:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }

/* Sector cards — stagger */
.hp-mega.is-open .hp-mega__sector-card:nth-child(1)  { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(2)  { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(3)  { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(4)  { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(5)  { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(6)  { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(7)  { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(8)  { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.hp-mega.is-open .hp-mega__sector-card:nth-child(n+9) { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }

/* Columns, grid-items, list-items, lang-cards — stagger */
.hp-mega.is-open .hp-mega__column:nth-child(1),
.hp-mega.is-open .hp-mega__grid-item:nth-child(1),
.hp-mega.is-open .hp-mega__list-item:nth-child(1),
.hp-mega.is-open .hp-mega__lang-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }

.hp-mega.is-open .hp-mega__column:nth-child(2),
.hp-mega.is-open .hp-mega__grid-item:nth-child(2),
.hp-mega.is-open .hp-mega__list-item:nth-child(2),
.hp-mega.is-open .hp-mega__lang-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }

.hp-mega.is-open .hp-mega__column:nth-child(3),
.hp-mega.is-open .hp-mega__grid-item:nth-child(3),
.hp-mega.is-open .hp-mega__list-item:nth-child(3),
.hp-mega.is-open .hp-mega__lang-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }

.hp-mega.is-open .hp-mega__column:nth-child(4),
.hp-mega.is-open .hp-mega__grid-item:nth-child(4),
.hp-mega.is-open .hp-mega__list-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }

.hp-mega.is-open .hp-mega__grid-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
.hp-mega.is-open .hp-mega__grid-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.38s; }
.hp-mega.is-open .hp-mega__grid-item:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.42s; }
.hp-mega.is-open .hp-mega__grid-item:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.46s; }

/* Footer */
.hp-mega.is-open .hp-mega__footer {
    opacity: 1; transform: translateY(0); transition-delay: 0.40s;
}

.hp-mega__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-mega__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.hp-mega__title {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-mega__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Columnas */
.hp-mega__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    flex: 1;
}

.hp-mega__column-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hp-mega__column--resources {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    margin: -12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-mega__column-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-mega__link {
    display: block;
    padding: 10px 12px;
    margin: 0 -12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition:
        color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.hp-mega__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.hp-mega__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #e8732e;
    text-decoration: none;
}

.hp-mega__cta-link:hover {
    text-decoration: underline;
}

.hp-mega__resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.hp-mega__resource-link:hover {
    color: #fff;
}

.hp-mega__resource-link svg {
    width: 16px;
    height: 16px;
    color: #e8732e;
    flex-shrink: 0;
}

/* Servicios - Full-image overlay + label centrado */
.hp-mega__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    flex: 1;
}

.hp-mega__service {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-decoration: none;
    overflow: hidden;
    background: #1a1a1a;
    color: #fff;
}

.hp-mega__service:hover {
    z-index: 1;
}

.hp-mega__service-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hp-mega__service-img::after {
    display: none;
}

.hp-mega__service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-mega__service:hover .hp-mega__service-img img {
    transform: scale(1.08);
}

.hp-mega__service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.4s ease;
    z-index: 1;
}

.hp-mega__service:hover .hp-mega__service-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.hp-mega__service-label {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
    padding: 0 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Legacy classes (keep for backwards compat) */
.hp-mega__service-body,
.hp-mega__service-title,
.hp-mega__service-desc,
.hp-mega__service-badge {
    display: none;
}

.hp-mega__cta {
    margin-top: 24px;
    text-align: center;
}

.hp-mega__cta-btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: #e8732e;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.hp-mega__cta-btn:hover {
    background: #d4622a;
}

/* Grid - Industrial Dark */
.hp-mega__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    flex: 1;
}

.hp-mega__grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}

.hp-mega__grid-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 115, 46, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232, 115, 46, 0.1);
}

.hp-mega__grid-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.hp-mega__grid-item:hover .hp-mega__grid-icon {
    transform: scale(1.1);
    color: #e8732e;
    background: rgba(232, 115, 46, 0.15);
}

.hp-mega__grid-icon svg {
    width: 24px;
    height: 24px;
}

.hp-mega__grid-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    letter-spacing: -0.01em;
}

/* ==============================================
   SECTORS GRID - Mini cards con imagen
   ============================================== */
.hp-mega__sectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px 0;
}

.hp-mega__sector-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
    aspect-ratio: 16/10;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hp-mega__sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hp-mega__sector-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-mega__sector-card:hover .hp-mega__sector-bg {
    transform: scale(1.08);
}

.hp-mega__sector-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.4s ease;
}

.hp-mega__sector-card:hover .hp-mega__sector-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* Legacy wrapper (hidden if old markup) */
.hp-mega__sector-img {
    display: none;
}

.hp-mega__sector-label {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ==============================================
   BLOG MEGAMENU - Estilo industrial
   ============================================== */
.hp-mega__blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    min-height: 320px;
}

.hp-mega__blog-categories {
    display: flex;
    flex-direction: column;
}

.hp-mega__blog-cats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    flex: 1;
}

.hp-mega__blog-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.hp-mega__blog-cat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 115, 46, 0.3);
    transform: translateX(4px);
}

.hp-mega__blog-cat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.01em;
}

.hp-mega__blog-cat-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    min-width: 24px;
    text-align: center;
}

.hp-mega__blog-featured {
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: stretch;
}

.hp-mega__blog-featured--empty {
    align-items: center;
    justify-content: center;
}

.hp-mega__blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.2);
}

.hp-mega__blog-empty span {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hp-mega__blog-article {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
}

.hp-mega__blog-article-img {
    flex: 1;
    overflow: hidden;
    min-height: 180px;
}

.hp-mega__blog-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-mega__blog-article:hover .hp-mega__blog-article-img img {
    transform: scale(1.05);
}

.hp-mega__blog-article-content {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
}

.hp-mega__blog-article-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    margin-bottom: 10px;
}

.hp-mega__blog-article-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

.hp-mega__blog-article:hover .hp-mega__blog-article-title {
    color: #fff;
}

/* List - Empresa: 3 cards Dark Luxe */
.hp-mega__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: none;
}

.hp-mega__list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}

.hp-mega__list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 115, 46, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232, 115, 46, 0.1);
}

.hp-mega__list-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: transform 0.3s, color 0.3s, background 0.3s;
}

.hp-mega__list-item:hover .hp-mega__list-icon {
    transform: scale(1.1);
    color: #e8732e;
    background: rgba(232, 115, 46, 0.12);
}

.hp-mega__list-icon svg {
    width: 28px;
    height: 28px;
}

.hp-mega__list-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Text Grid — Actualidad: 4 columnas Dark Luxe */
.hp-mega__tg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
    flex: 1;
}

.hp-mega__tg-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s;
}

.hp-mega.is-open .hp-mega__tg-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hp-mega.is-open .hp-mega__tg-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.hp-mega.is-open .hp-mega__tg-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hp-mega.is-open .hp-mega__tg-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

.hp-mega__tg-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hp-mega__tg-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
}

.hp-mega__tg-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.35);
}

/* Footer - Dark Luxe */
.hp-mega__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-mega__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(232, 115, 46, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: 1;
    margin-left: auto;
}

.hp-mega__footer-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #e8732e, #ff9a56);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(232, 115, 46, 0.25);
}

.hp-mega__footer-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.hp-mega__footer-link:hover svg {
    transform: translateX(4px);
}

.hp-mega__footer-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    order: -1;
    margin-right: auto;
}

/* ==============================================
   MEGAMENU - PRODUCTOS (Tabs + Grid)
   ============================================== */
.hp-mega__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-mega__tab {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-mega__tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.hp-mega__tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #e8732e, #ff9a56);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(232, 115, 46, 0.3);
}

/* Grid de productos — Dark Luxe cards con glow */
.hp-mega__prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    margin-bottom: 32px;
}

.hp-mega__prod-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #1a1a1e;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hp-mega__prod-card:hover {
    border-color: rgba(232, 115, 46, 0.4);
    box-shadow: 0 0 24px rgba(232, 115, 46, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hp-mega__prod-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-mega__prod-card:hover .hp-mega__prod-bg {
    transform: scale(1.08);
}

.hp-mega__prod-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
    transition: background 0.4s ease;
}

.hp-mega__prod-card:hover .hp-mega__prod-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.hp-mega__prod-label {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-align: left;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Idiomas */
.hp-mega__langs-container {
    text-align: center;
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-mega__langs-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.hp-mega__lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition:
        all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-mega__lang-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hp-mega__lang-card.is-active {
    border-color: rgba(232, 115, 46, 0.5);
    background: rgba(232, 115, 46, 0.1);
}

.hp-mega__lang-flag {
    font-size: 32px;
    transition: transform 0.3s;
}

.hp-mega__lang-card:hover .hp-mega__lang-flag {
    transform: scale(1.15);
}

.hp-mega__lang-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
}

.hp-mega__lang-check {
    color: #e8732e;
}

.hp-mega__lang-check svg {
    width: 18px;
    height: 18px;
}

/* ==============================================
   MOBILE MENU
   ============================================== */
.hp-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.1);
}

.hp-mobile.is-open {
    transform: translateX(0);
}

.hp-mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-mobile__logo {
    height: 24px;
}

.hp-mobile__logo img {
    height: 100%;
    width: auto;
}

.hp-mobile__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.2s;
}

.hp-mobile__close:hover {
    background: #ebebed;
}

.hp-mobile__close svg {
    width: 18px;
    height: 18px;
}

.hp-mobile__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.hp-mobile__cat {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-mobile__cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.hp-mobile__cat-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Enlace directo sin dropdown */
.hp-mobile__cat-btn--link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-mobile__cat-icon {
    color: #86868b;
    transition: transform 0.25s;
}

.hp-mobile__cat-icon svg {
    width: 14px;
    height: 14px;
}

.hp-mobile__cat.is-open .hp-mobile__cat-icon {
    transform: rotate(90deg);
    color: #e8732e;
}

.hp-mobile__cat-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.hp-mobile__cat.is-open .hp-mobile__cat-content {
    grid-template-rows: 1fr;
}

.hp-mobile__cat-inner {
    overflow: hidden;
    background: #f5f5f7;
}

.hp-mobile__subcat {
    padding: 16px 20px;
}

.hp-mobile__subcat:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-mobile__subcat-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 12px;
}

.hp-mobile__link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #1d1d1f;
    text-decoration: none;
}

.hp-mobile__link:hover {
    color: #e8732e;
}

.hp-mobile__link--all,
.hp-mobile__link--highlight {
    color: #e8732e;
    font-weight: 500;
}

.hp-mobile__link--featured {
    background: #fff;
    padding: 12px;
    margin-top: 8px;
}

.hp-mobile__link--child {
    padding-left: 16px;
    font-size: 13px;
    color: #6e6e73;
}

.hp-mobile__divider {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868b;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-mobile__link strong {
    display: block;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.hp-mobile__link span {
    font-size: 12px;
    color: #86868b;
}

.hp-mobile__footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-mobile__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background: #e8732e;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.hp-mobile__cta-btn:hover {
    background: #d4622a;
}

.hp-mobile__langs {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hp-mobile__lang {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    background: #f5f5f7;
    transition: all 0.2s;
}

.hp-mobile__lang:hover {
    background: #ebebed;
    color: #1d1d1f;
}

.hp-mobile__lang.is-active {
    background: #e8732e;
    color: #fff;
}

/* ==============================================
   OVERLAY - Premium blur
   ============================================== */
.hp-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.hp-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1280px) {
    .hp-mega__container {
        padding: 40px 32px 48px;
    }

    .hp-mega__columns {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .hp__nav, .hp__actions { display: none; }
    .hp__hamburger { display: flex; }

    .hp-mega__container {
        padding: 32px 24px 40px;
        min-height: auto;
    }
}

@media (max-width: 1200px) {
    .hp-mega__sectors-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .hp-mega__columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hp-mega__services { grid-template-columns: 1fr; }
    .hp-mega__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-mega__sectors-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hp-mega__list { grid-template-columns: 1fr; }
    .hp-mega__blog { grid-template-columns: 1fr; gap: 24px; }
    .hp-mega__blog-featured { min-height: 200px; }

    .hp-mega__grid-item {
        padding: 20px 16px;
    }

    .hp-mega__title {
        font-size: 24px;
    }

    .hp-mega__langs-grid {
        flex-wrap: wrap;
    }

    .hp-mega__lang-card {
        padding: 20px 28px;
    }
}

@media (max-width: 480px) {
    .hp-mobile { max-width: 100%; }

    .hp-mega__columns { grid-template-columns: 1fr; }
    .hp-mega__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-mega__sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==============================================
   HIERARCHY MEGA MENU - Industrial Luxury Design
   ============================================== */
.hp-mega__hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    flex: 1;
}

.hp-mega__column--hierarchy {
    display: flex;
    flex-direction: column;
}

.hp-mega__column--hierarchy .hp-mega__column-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-mega__categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-mega__category {
    border-left: 3px solid transparent;
    padding-left: 0;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.hp-mega__category:hover {
    border-left-color: #e8732e;
    padding-left: 12px;
}

.hp-mega__cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.hp-mega__cat-header:hover {
    color: #fff;
}

.hp-mega__cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hp-mega__cat-header:hover .hp-mega__cat-icon {
    background: rgba(232, 115, 46, 0.12);
    color: #e8732e;
    transform: scale(1.05);
}

.hp-mega__cat-label {
    flex: 1;
}

.hp-mega__cat-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    background: linear-gradient(135deg, #e8732e, #d4622a);
    color: #fff;
    border-radius: 4px;
}

.hp-mega__cat-arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: #e8732e;
}

.hp-mega__cat-header:hover .hp-mega__cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Children - Subcategorias */
.hp-mega__children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 42px;
    margin-top: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: 16px;
}

.hp-mega__child {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
}

.hp-mega__child:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}

.hp-mega__child-bullet {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hp-mega__child:hover .hp-mega__child-bullet {
    opacity: 1;
    transform: scale(1.5);
    background: #e8732e;
}

.hp-mega__child-label {
    flex: 1;
}

/* Animations for hierarchy */
.hp-mega__category {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hp-mega.is-open .hp-mega__category:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hp-mega.is-open .hp-mega__category:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.hp-mega.is-open .hp-mega__category:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hp-mega.is-open .hp-mega__category:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hp-mega.is-open .hp-mega__category:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hp-mega.is-open .hp-mega__category:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* Responsive hierarchy */
@media (max-width: 1024px) {
    .hp-mega__hierarchy {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hp-mega__children {
        padding-left: 24px;
    }

    .hp-mega__cat-header {
        font-size: 14px;
    }
}

/* ==============================================
   BODY
   ============================================== */
body {
    padding-top: var(--header-height);
}

body.page-home {
    padding-top: 0;
}
