/* ============================================
   ASERTEC Soluciones Integrales S.A.S
   Corporate: Vibrant Orange | Charcoal Grey | Deep Black | White
   Industry 4.0 | Enterprise-ready
   ============================================ */

:root {
    --orange: #E85D04;
    --orange-light: #F48C4A;
    --orange-dark: #D34D03;
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --black: #0D0D0D;
    --white: #FFFFFF;
    --grey-border: #E5E5E5;
    --grey-bg: #F8F9FA;
    --grey-light: #F5F7FA;
    
    /* Sombras profesionales */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-orange: 0 8px 24px rgba(232, 93, 4, 0.20);
    
    /* Tipografía profesional */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', var(--font-body);
    
    /* Transiciones suaves */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Navbar: logo + menú + franja naranja (espacio extra bajo contenido) */
    --nav-offset: 100px;
}

@media (max-width: 991px) {
    :root { --nav-offset: 84px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-offset);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    overflow-x: visible;
    background: #FAFBFC;
    position: relative;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Separación bajo navbar fixed (páginas internas) */
.page-empresa,
.page-productos {
    padding-top: var(--nav-offset);
}

/* Contenido principal sobre decoraciones */
body > *:not(.site-decorations) {
    position: relative;
    z-index: 1;
}

.text-orange { color: var(--orange) !important; }

/* ========== Navbar - logo izquierda, fondo blanco ========== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    padding: 0.5rem 0;
    transition: box-shadow 0.3s ease;
    z-index: 10050;
    overflow: visible;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    position: relative;
    z-index: 1;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.navbar-brand.navbar-brand-logo {
    position: relative;
    left: auto;
    transform: none;
    margin-right: 1rem;
    padding: 0.45rem 1rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
}

.navbar-brand.navbar-brand-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.navbar .navbar-collapse {
    flex-grow: 1;
    justify-content: flex-end;
    overflow: visible;
}

.navbar-nav-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .navbar .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }
    .navbar-nav-center .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .navbar-nav-center {
        width: 100%;
        justify-content: flex-start;
    }
    .navbar-nav-center .navbar-nav {
        justify-content: flex-start;
    }
}

.navbar .dropdown-toggle::after {
    border-top-color: currentColor;
}

/* Menú en una sola línea (desktop): compacto y alineado */
.navbar-main {
    padding: 0.65rem 0 0;
    /* No sobrescribir .fixed-top (Bootstrap) */
    position: relative;
    border-bottom: none;
}

/* Mantener navbar pegada arriba cuando es fixed-top */
.navbar-main.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Aire entre logo / menú y la franja naranja */
.navbar-main .container {
    max-width: 1320px;
    padding-bottom: 1.15rem;
}

@media (max-width: 991px) {
    .navbar-main .container {
        padding-bottom: 1rem;
    }
}

/* Franja naranja corporativa bajo el menú (detrás del contenido para no tapar el buscador) */
.navbar-main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    background: linear-gradient(
        90deg,
        var(--orange-dark) 0%,
        var(--orange) 22%,
        var(--orange-light) 55%,
        var(--orange) 100%
    );
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.42);
    z-index: 0;
    pointer-events: none;
    border-radius: 2px 2px 0 0;
}

@media (min-width: 992px) {
    .navbar-main .navbar-nav {
        flex-wrap: nowrap !important;
        gap: 0.1rem;
    }

    .navbar-main .nav-link {
        font-size: 0.8125rem;
        font-weight: 600;
        padding: 0.4rem 0.55rem !important;
        white-space: nowrap;
        letter-spacing: 0.01em;
    }

    .navbar-main .navbar-nav .nav-link::after {
        left: 10px;
        right: 10px;
        bottom: 5px;
    }

    .navbar-main .nav-site-search {
        max-width: 195px;
    }

    .navbar-main .nav-site-search .form-control,
    .navbar-main .nav-site-search .input-group-text {
        font-size: 0.78rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar-main .btn-cart {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 1200px) {
    .navbar-main .nav-link {
        font-size: 0.875rem;
        padding: 0.42rem 0.7rem !important;
    }

    .navbar-main .nav-site-search {
        max-width: 220px;
    }

    .navbar-main .nav-site-search .form-control,
    .navbar-main .nav-site-search .input-group-text {
        font-size: 0.85rem;
    }
}

.navbar-main .navbar-brand-logo {
    margin-right: 0.85rem;
    padding: 0.55rem 1.15rem;
}

.navbar-main .navbar-brand-logo img {
    height: 52px;
}

.navbar .navbar-nav {
    overflow: visible;
    align-items: center;
}

@media (max-width: 991px) {
    .navbar .navbar-collapse.show {
        background: var(--white);
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid var(--grey-border);
        box-shadow: var(--shadow-md);
    }
}

.nav-link {
    color: var(--charcoal) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s, background 0.2s;
    border-radius: 999px;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--orange) !important;
    background: rgba(232, 93, 4, 0.08);
}

/* Búsqueda a la derecha del bloque de enlaces centrado (por encima de la franja ::after) */
.nav-site-search {
    position: relative;
    z-index: 25;
    min-width: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
}

.nav-site-search .form-control {
    border-radius: 999px;
    border: 1px solid var(--grey-border);
    font-size: 0.9rem;
    padding-left: 0.5rem;
}

.nav-site-search .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.nav-site-search .input-group-text {
    background: var(--grey-bg);
    border: 1px solid var(--grey-border);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    color: var(--charcoal-light);
}

.nav-site-search .input-group .form-control {
    border-left: 0;
    border-radius: 0 999px 999px 0;
}

.site-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 100010;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    max-height: min(70vh, 380px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0;
    -webkit-overflow-scrolling: touch;
}

/* Abierto: fijo al viewport (evita recorte por overflow del navbar / body) */
.site-search-dropdown.site-search-dropdown--open {
    position: fixed !important;
    /* La posición/tamaño los calcula JS con estilos inline (left/top/width) */
    min-width: 220px;
    max-width: min(100vw - 16px, 420px);
    margin: 0;
    z-index: 100100 !important;
}

/* Solo [hidden]: :empty dejaba display:none al vaciar innerHTML un instante y rompía el listado */
.site-search-dropdown[hidden] {
    display: none !important;
}

.site-search-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.site-search-dropdown a:hover,
.site-search-dropdown a:focus {
    background: rgba(232, 93, 4, 0.08);
    color: var(--orange);
}

.site-search-dropdown .site-search-hint {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--charcoal-light);
}

@media (max-width: 991px) {
    .nav-site-search {
        flex: 1 1 100%;
        margin-top: 0.75rem;
    }
}

/* underline animado (más “dinámico”) */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(232, 93, 4, 0) 0%, rgba(232, 93, 4, 0.95) 35%, rgba(232, 93, 4, 0.35) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
    opacity: 0.9;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Contenedor del dropdown: posición para que el menú se coloque debajo */
.navbar .nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 10px 28px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    min-width: 240px;
    margin-top: 0;
    z-index: 10060 !important;
    color: var(--charcoal);
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

/* Evitar gap blanco entre navbar y dropdown */
.navbar .dropdown .dropdown-menu {
    border-top: 3px solid var(--orange);
}

/* Portal: submenús se mueven aquí para estar siempre visibles */
#dropdown-portal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}
#dropdown-portal .dropdown-menu {
    pointer-events: auto;
    z-index: 100000;
    border-top: 3px solid var(--orange);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(232, 93, 4, 0.08);
    opacity: 0;
    transform: translateY(-10px);
}
#dropdown-portal .dropdown-menu.dropdown-menu--open {
    opacity: 1;
    transform: translateY(0);
}
#dropdown-portal .dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 1rem 0.6rem 1rem;
    margin: 0 2px;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#dropdown-portal .dropdown-menu .dropdown-item:hover {
    border-left-color: var(--orange);
    transform: translateX(4px);
}
#dropdown-portal .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: rgba(0, 0, 0, 0.06);
}


.dropdown-mega { min-width: 280px; }

.dropdown-menu-industrial {
    min-width: 260px;
}

/* Mega menu - posicionamiento corregido para evitar montajes */
@media (min-width: 992px) {
    .dropdown-mega-menu {
        position: static;
    }

    .mega-menu {
        left: 50% !important;
        right: auto !important;
        width: 100%;
        max-width: 920px;
        margin-left: 0 !important;
        transform: translateX(-50%) !important;
        padding: 0 !important;
        /* Sin gap para que el mouse no “pierda” el submenu */
        margin-top: 0 !important;
        z-index: 1055;
    }

    .mega-menu .container {
        max-width: 100%;
    }

    /* Separación clara entre columnas del mega menú */
    .mega-menu .col-lg-3 {
        border-right: 1px solid var(--grey-border);
    }
    .mega-menu .col-lg-3:last-child {
        border-right: none;
    }
}

/* En desktop: si Bootstrap abre por click (.show), asegurar visibilidad */
@media (min-width: 992px) {
    .navbar .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* En desktop: abrir dropdown por hover y por click — siempre encima del hero/contenido */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0;
        margin-top: 0;
        z-index: 10060 !important;
    }
    .navbar .nav-item.dropdown:hover > .dropdown-menu.dropdown-menu-end,
    .navbar .nav-item.dropdown .dropdown-menu.dropdown-menu-end.show {
        left: auto;
        right: 0;
    }

    /* Mega menú: asegurar que caiga debajo del navbar */
    .navbar .dropdown-mega-menu:hover > .mega-menu {
        top: 100%;
    }

    .navbar .dropdown:hover > .nav-link {
        color: var(--orange) !important;
    }
}

.mega-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.mega-menu .dropdown-item {
    padding: 0.35rem 1rem;
    display: block;
}

.mega-electronica {
    min-width: 320px;
    max-width: 380px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Base mega menu (fuera del media query) */
.mega-menu {
    z-index: 1055;
}

.dropdown-item {
    font-size: 0.9375rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    color: var(--charcoal) !important;
    display: block;
    width: 100%;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(232, 93, 4, 0.1);
    color: var(--orange) !important;
    transform: translateX(4px);
}

.dropdown-item:focus {
    background: rgba(232, 93, 4, 0.14);
    color: var(--orange) !important;
}

.dropdown-divider { margin: 0.25rem 0; }

.dropdown-submenu { position: relative; }

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

.dropdown-submenu:hover .dropdown-menu { display: block; }

@media (min-width: 992px) {
    .dropdown-submenu .dropdown-toggle::after { transform: rotate(-90deg); }
}

/* En móvil: dropdowns sin superposición, cada uno en su espacio */
@media (max-width: 991px) {
    .dropdown-mega-menu { position: relative; }
    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--grey-border);
        border-radius: 8px;
        padding: 0.5rem 0 0.5rem 1rem;
        background: var(--grey-bg);
    }
    .navbar .dropdown-item {
        color: var(--charcoal) !important;
        padding: 0.5rem 0.5rem 0.5rem 0;
    }
    .navbar .dropdown-item:hover {
        background: rgba(232, 93, 4, 0.12);
        color: var(--orange) !important;
    }
    .mega-menu {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-top: 0.25rem !important;
    }
    .mega-menu .container { padding: 0; }
    .mega-menu .row { margin: 0; }
    .mega-menu .col-md-6, .mega-menu .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mega-menu .col-lg-3:last-child { border-bottom: none; }
    .mega-title { padding: 0 0.5rem; color: var(--charcoal-light); }
    .mega-electronica { max-width: 100%; max-height: none; overflow-y: visible; }
    .navbar .dropdown-divider { border-color: var(--grey-border); }
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--grey-bg);
    border: 1px solid var(--grey-border);
    transition: background 0.2s;
}

.btn-cart:hover { background: var(--orange); color: white !important; border-color: var(--orange); }

.navbar-toggler {
    border-color: var(--grey-border);
    color: var(--charcoal);
}

.navbar-toggler-icon { filter: none; }

/* ========== Hero - Industry 4.0 ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 50%, var(--charcoal-light) 100%);
    position: relative;
    overflow: hidden;
    z-index: 0;
    isolation: isolate;
}

/* Evitar que el contenido del hero quede pegado al navbar fixed */
.hero { padding-top: var(--nav-offset); }
.hero .min-vh-100 { min-height: calc(100vh - var(--nav-offset)); }

/* Textura de fondo: industria + electrónica (circuitos, estructura técnica) */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        /* Cuadrícula tipo circuito / PCB */
        linear-gradient(rgba(232, 93, 4, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.06) 1px, transparent 1px),
        /* Líneas diagonales (estructura industrial) */
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        /* Puntos en nodos (conexiones tipo circuito) */
        radial-gradient(circle at center, rgba(232, 93, 4, 0.08) 1px, transparent 1px);
    background-size:
        40px 40px,
        40px 40px,
        24px 24px,
        24px 24px,
        40px 40px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

/* Ruido sutil para dar profundidad (opcional, muy suave) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 40%, rgba(232, 93, 4, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 70%, rgba(232, 93, 4, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    margin-right: 0;
    margin-bottom: 0;
    min-width: 180px;
    text-align: center;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: 1.05rem; margin: 1rem 0 1.75rem; }
    .hero-actions { gap: 0.75rem; }
    .hero-actions .btn { min-width: 100%; padding: 0.9rem 1.5rem; font-size: 0.95rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
}

.btn-cta {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: 2px solid transparent;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(232, 93, 4, 0);
}

.btn-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--orange-dark) 0%, #B84A02 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange), 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BD5A 100%);
    border: 2px solid transparent;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BD5A 0%, #1CA850 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition-base);
}
.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-whatsapp-lg {
    background: #25D366;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-whatsapp-lg:hover { background: #20BD5A; color: white; }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: var(--orange);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== Inicio: tarjetas sector (no pantalla completa) ========== */
.home-sectors-section {
    position: relative;
    padding-top: var(--nav-offset);
    padding-bottom: 0;
    overflow: hidden;
    background: linear-gradient(165deg, #e8ecf2 0%, #f4f6f9 50%, #ffffff 100%);
    border-bottom: none;
}

/* ========== Inicio (page-home): carrusel bajo la franja naranja + menú siempre legible ========== */
body.page-home .navbar-main {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 10060 !important;
}

.page-home .home-sectors-section.home-inicio {
    padding-top: var(--nav-offset);
    /* Franja superior oscura bajo el menú; el carrusel llena desde la división naranja */
    background-image:
        linear-gradient(to bottom, #0d0d0d 0, #0d0d0d var(--nav-offset), rgba(13, 13, 13, 0) var(--nav-offset)),
        linear-gradient(165deg, #e8ecf2 0%, #f4f6f9 50%, #ffffff 100%);
    background-color: #f4f6f9;
}

/* Carrusel: alto amplio; el padding del section evita solaparse con el menú fijo */
.page-home .home-hero-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 0;
    min-height: clamp(400px, 66vh, 860px);
    background: #0d0d0d;
    overflow: hidden;
}

@media (max-width: 991px) {
    .page-home .home-hero-stage {
        min-height: clamp(320px, 52vh, 620px);
    }
}

.page-home .home-hero-stage .hero-slider {
    z-index: 0;
}

.page-home .home-hero-stage .hero-nav {
    z-index: 5;
}

.page-home .home-hero-stage .hero-pagination {
    z-index: 5;
}

/* Tres accesos Seguridad industrial: debajo del slide, con aire */
.page-home .home-industrial-quick {
    position: relative;
    z-index: 2;
    background: linear-gradient(165deg, #e8ecf2 0%, #f4f6f9 55%, #fafbfc 100%);
    padding: 2rem 0 1.25rem;
}

.page-home .home-industrial-quick-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal-light);
    letter-spacing: 0.02em;
}

.page-home .home-industrial-mini {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    min-height: 3.5rem;
    border-radius: 14px;
    border: 1px solid rgba(232, 93, 4, 0.28);
    background: var(--white);
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-industrial-mini:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 28px rgba(232, 93, 4, 0.18);
    transform: translateY(-2px);
    color: var(--charcoal);
}

.page-home .home-industrial-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(232, 93, 4, 0.12);
    color: var(--orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.page-home .home-industrial-mini-text {
    flex: 1 1 auto;
}

.page-home .home-industrial-mini-arrow {
    color: var(--orange);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Tarjetas grandes sector: más abajo, ya no compiten con el alto del menú */
.page-home .home-sectors-section.home-inicio > .container {
    padding-top: 2.5rem;
}

@media (min-width: 992px) {
    .page-home .home-sectors-section.home-inicio > .container {
        padding-top: 3rem;
    }
}

/* Sin “corte” visual hacia contacto: misma continuidad de fondo */
.contact-flows-from-home {
    padding-top: 2rem !important;
    border-top: none;
}

@media (min-width: 992px) {
    .contact-flows-from-home {
        padding-top: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .contact-flows-from-home {
        padding-top: 1.75rem !important;
    }
}

.home-sectors-row {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
}

@media (min-width: 1200px) {
    .home-sectors-row {
        --bs-gutter-x: 3rem;
        --bs-gutter-y: 2.5rem;
    }
}

.home-split-scroll--light .scroll-indicator {
    color: var(--charcoal-light);
    text-shadow: none;
}

.home-split-scroll--light .scroll-indicator:hover {
    color: var(--orange);
}

/* ========== Inicio legacy (hero split oscuro) ========== */
.home-split-hero {
    position: relative;
    padding-top: var(--nav-offset);
    overflow: hidden;
    background: var(--black);
}

.home-split-row {
    margin: 0;
    --bs-gutter-x: 0;
}

.home-focus-column {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

.home-focus-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.home-focus-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.88) 0%, rgba(13, 13, 13, 0.5) 35%, rgba(13, 13, 13, 0.82) 100%);
}

.home-focus-card {
    position: relative;
    z-index: 2;
    flex: 1;
    margin: 1.15rem;
    padding: 1.5rem 1rem 2rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 992px) {
    .home-focus-card {
        margin: 1.5rem 0.85rem 2rem;
        padding: 1.75rem 1.35rem 2.25rem;
    }
}

.home-focus-header .section-title {
    color: var(--charcoal);
}

.home-focus-header .section-desc {
    color: var(--charcoal-light);
    margin-left: auto;
    margin-right: auto;
}

.home-split-hero .section-tag {
    background: rgba(232, 93, 4, 0.1);
}

@media (max-width: 991px) {
    .home-focus-column {
        min-height: auto;
    }
}

.home-split-scroll {
    position: relative;
    z-index: 3;
    padding-bottom: 0.5rem;
}

.home-split-scroll .scroll-indicator {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Portadas sector (enlace a página de productos) */
.home-sector-tile {
    position: relative;
    height: 100%;
}

.home-sector-tile--framed {
    min-height: 340px;
}

@media (min-width: 992px) {
    .home-sector-tile--framed {
        min-height: 520px;
        max-height: none;
    }
}

@media (min-width: 1200px) {
    .home-sector-tile--framed {
        min-height: 580px;
    }
}

.home-sector-tile--framed .home-sector-cover {
    min-height: 340px;
    height: 100%;
}

@media (min-width: 992px) {
    .home-sector-tile--framed .home-sector-cover {
        min-height: 520px;
        max-height: none;
    }
}

@media (min-width: 1200px) {
    .home-sector-tile--framed .home-sector-cover {
        min-height: 580px;
    }
}

.home-sector-cover {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(13, 13, 13, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--charcoal);
    text-decoration: none;
    color: inherit;
}

.home-sector-tile--framed .home-sector-cover {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 16px 36px -12px rgba(0, 0, 0, 0.18);
}

.home-sector-cover:hover,
.home-sector-cover:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-orange);
    outline: none;
}

.home-sector-cover:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.home-sector-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.home-sector-cover:hover .home-sector-bg,
.home-sector-cover:focus-visible .home-sector-bg {
    transform: scale(1.04);
}

.home-sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(13, 13, 13, 0.2) 0%, rgba(13, 13, 13, 0.55) 50%, rgba(13, 13, 13, 0.88) 100%);
    z-index: 1;
}

.home-sector-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: inherit;
    padding: 2rem 1.75rem;
    text-align: left;
}

.home-sector-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.5rem;
}

.home-sector-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.home-sector-title em {
    font-style: normal;
    color: var(--orange-light);
}

.home-sector-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(232, 93, 4, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modal-sector .modal-header {
    border-bottom: 1px solid var(--grey-border);
}

/* ========== Sections ========== */
.section-padding { padding: 6rem 0; }

@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section-desc { font-size: 1rem; padding: 0 0.5rem; }
}
@media (max-width: 576px) {
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 1.45rem; }
    .section-tag { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
}

/* Evitar que el scroll quede oculto bajo navbar fijo */
#inicio, #seguridad-industrial, #seguridad-electronica, #contacto {
    scroll-margin-top: var(--nav-offset);
}

.section-tag {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    background: rgba(232, 93, 4, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--orange);
}

.section-tag-light { color: var(--orange-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== Enterprise Cards (Misión, Visión, etc.) ========== */
.enterprise-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.enterprise-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(232, 93, 4, 0.2);
}

.enterprise-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.enterprise-card-header i {
    font-size: 1.5rem;
    color: var(--orange);
}

.enterprise-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--charcoal);
}

.enterprise-card p {
    margin-bottom: 0.75rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

.enterprise-card p:last-child { margin-bottom: 0; }

.objectives-list {
    padding-left: 1.5rem;
    margin: 0;
    color: var(--charcoal-light);
    line-height: 1.8;
}

.objectives-list li { margin-bottom: 0.5rem; }

/* ========== Feature Cards - Seguridad Industrial ========== */
.feature-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 16px;
    padding: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: rgba(232, 93, 4, 0.3);
    box-shadow: 0 20px 48px rgba(232, 93, 4, 0.22), 0 0 0 1px rgba(232, 93, 4, 0.1);
    color: var(--charcoal);
    transform: translateY(-8px);
}

.feature-card:hover .feature-card-img-wrap img {
    transform: scale(1.08);
}

.feature-card:hover .feature-card-icon {
    background: var(--orange);
    color: white;
}

/* Franja naranja superior: título en blanco */
.feature-card-title-strip {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    padding: 0.65rem 1rem;
    text-align: center;
}
.feature-card-title-strip h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: white !important;
    letter-spacing: 0.02em;
}

/* Área visual superior - imagen + icono */
.feature-card-visual {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.04) 0%, rgba(45, 45, 45, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.feature-card-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Badge icono profesional */
.feature-card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--grey-border);
    border-radius: 10px;
    color: var(--orange);
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Contenido texto */
.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    padding: 1.25rem 1.5rem 0.5rem;
    color: var(--charcoal);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .feature-card-title-strip h4 { font-size: 0.9rem; }
    .feature-card-visual { height: 120px; padding: 1rem; }
    .feature-card p { padding: 0 1rem 1rem; font-size: 0.85rem; }
    .feature-card-icon { width: 36px; height: 36px; font-size: 1rem; top: 8px; right: 8px; }
}

/* Fallback para feature-icon antiguo (otras páginas) */
.feature-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--orange);
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    transition: all var(--transition-base);
}
.feature-card:hover .feature-icon {
    transform: scale(1.05);
    border-color: var(--orange-dark);
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========== Seguridad Electrónica Cards ========== */
.electronica-card {
    background: var(--white);
    border: 2px solid rgba(232, 93, 4, 0.45);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 16px rgba(232, 93, 4, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Franja naranja superior en cada tarjeta */
.electronica-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    border-radius: 16px 16px 0 0;
}

.electronica-card:hover {
    border-color: var(--orange);
    box-shadow: 0 12px 32px rgba(232, 93, 4, 0.22), 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.electronica-card i {
    font-size: 2.5rem;
    color: var(--orange);
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(232, 93, 4, 0.2));
    transition: all var(--transition-base);
}
.electronica-card:hover i {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 10px rgba(232, 93, 4, 0.35));
}

.electronica-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.electronica-card p {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    margin: 0;
}

.electronica-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.electronica-card-link:hover {
    color: inherit;
}

.electronica-card-full {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.electronica-card-full i { margin-bottom: 0; }

/* Card energías renovables - centrada y simétrica */
.electronica-card-centered {
    max-width: 280px;
    width: 100%;
}

.electronica-card-sym {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

@media (max-width: 576px) {
    .electronica-card { padding: 1.25rem 1rem; }
    .electronica-card i { font-size: 2rem; }
    .electronica-card h4 { font-size: 0.95rem; }
    .electronica-card p { font-size: 0.8rem; }
    .electronica-card-sym { min-height: 140px; }
}

/* ========== Product Cards + Ficha Técnica WhatsApp ========== */
.product-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(232, 93, 4, 0.6);
    box-shadow: 0 12px 32px rgba(232, 93, 4, 0.25);
    transform: translateY(-6px);
}

.product-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.05);
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.btn-ficha {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-light);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(232, 93, 4, 0.5);
    transition: all 0.2s;
}

.btn-ficha:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

@media (max-width: 576px) {
    .product-card { padding: 1.25rem 1rem; }
    .product-card h4 { font-size: 0.95rem; }
    .btn-ficha { display: block; text-align: center; }
}

/* ========== Hero Slider (Swiper) ========== */
.hero-slider {
    position: absolute;
    inset: 0;
}
.hero-slider .swiper-slide {
    height: 100%;
    position: relative;
}

/* Textura de fondo solo en el slide "Soluciones integrales..." — mayor intensidad */
.hero-slide-texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 93, 4, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.18) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(232, 93, 4, 0.22) 2px, transparent 2px);
    background-size: 36px 36px, 36px 36px, 20px 20px, 20px 20px, 36px 36px;
}

/* Overlay más suave para que la textura se vea con mayor intensidad */
.swiper-slide-textura::after {
    background: linear-gradient(90deg, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.45) 50%, rgba(13,13,13,0.18) 100%);
}

/* Emblem/estrella ASERTEC en el slide — tamaño grande como el área del círculo rojo */
.hero-slide-emblem {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    max-width: 520px;
    width: 48vw;
    max-height: 75vh;
    opacity: 0.92;
}
.hero-slide-emblem img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: contrast(1.15) saturate(1.1);
    backface-visibility: hidden;
    transform: translateZ(0);
}
@media (max-width: 991px) {
    .hero-slide-emblem {
        max-width: 280px;
        width: 55vw;
        right: 2%;
        opacity: 0.85;
    }
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.08) contrast(1.08) brightness(0.95);
    transform: scale(1.05);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    transition: all 8s ease-out;
}
.hero-slider .swiper-slide-active .hero-slide-bg {
    transform: scale(1.1);
    filter: saturate(1.12) contrast(1.12) brightness(1);
}

/* Overlay para legibilidad del texto */
.hero-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.72) 45%, rgba(13,13,13,0.35) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Asegurar contenido por encima del background */
.hero-slider .hero-content {
    position: relative;
    z-index: 2;
}
.hero-pagination { bottom: 4rem !important; }
.hero-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all var(--transition-base);
}
.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.15);
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--orange);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.4);
}
.hero-nav {
    color: white !important;
}
.hero-nav::after { font-size: 1.5rem; }
.hero-nav:hover { color: var(--orange) !important; }

/* ========== Gallery - Slider Swiper ========== */
.gallery-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}
.gallery-slider {
    padding: 0.5rem 0 3rem;
}
.gallery-slide-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}
.gallery-slide-card:hover {
    transform: translateY(-10px);
    border-color: rgba(232, 93, 4, 0.4);
    box-shadow: var(--shadow-xl), 0 0 0 2px rgba(232, 93, 4, 0.1);
}
.gallery-slide-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}
.gallery-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
}
.gallery-slide-card:hover .gallery-slide-img img { transform: scale(1.1); }
.gallery-slide-title {
    display: block;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    text-align: center;
}
.gallery-pagination { bottom: 0.5rem !important; }
.gallery-pagination .swiper-pagination-bullet {
    background: var(--charcoal-light);
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all var(--transition-base);
}
.gallery-pagination .swiper-pagination-bullet:hover {
    opacity: 0.7;
    transform: scale(1.15);
}
.gallery-pagination .swiper-pagination-bullet-active {
    background: var(--orange);
    opacity: 1;
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
}
.gallery-nav {
    color: var(--charcoal) !important;
}
.gallery-nav:hover { color: var(--orange) !important; }

/* ========== Gallery Grid (legacy/backup) ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 93, 4, 0.3);
    box-shadow: 0 20px 40px rgba(232, 93, 4, 0.15);
}

.gallery-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    overflow: hidden;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.gallery-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--orange-light);
    font-weight: 500;
}

.btn-gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1A1A1A 100%);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-gallery-cta:hover {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
}

/* Responsive gallery */
/* Ocultar decoraciones en móvil para mejor rendimiento */
@media (max-width: 768px) {
    .site-decorations,
    .hero-deco { display: none; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gallery-card-overlay {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(13, 13, 13, 0.85) 0%, transparent 70%);
    }
    .gallery-card-action { display: none; }
}

/* Legacy gallery-item (si se usa en otras páginas) */
.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--grey-border);
    transition: transform 0.25s;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lb-data .lb-caption, .lb-close { color: var(--charcoal); }

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-content p { margin-bottom: 1.5rem; opacity: 0.95; }

.cta-content .btn-light {
    background: white;
    color: var(--orange);
    border: none;
    font-weight: 600;
}

.cta-content .btn-light:hover {
    background: var(--charcoal);
    color: white;
}

@media (max-width: 768px) {
    .cta-section { padding: 3.5rem 1rem; }
    .cta-content h2 { font-size: 1.5rem; }
}
@media (max-width: 576px) {
    .cta-section { padding: 2.5rem 0.75rem; }
    .cta-content .btn-light { display: block; width: 100%; }
}

/* ========== Contact ========== */
.contact-card {
    background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
    border: 1px solid var(--grey-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.contact-card--wide {
    padding: 2rem 2.25rem 2.25rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card .row.g-4 {
    --bs-gutter-y: 1.25rem;
}

.contact-info-grid {
    --bs-gutter-x: 1.5rem;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(232, 93, 4, 0.12);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: visible;
    min-width: 0;
}

.contact-info-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    width: 100%;
}

.contact-info-body {
    width: 100%;
    min-width: 0;
}

.contact-info-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0.9;
}

.contact-info-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(232, 93, 4, 0.12);
    border-color: rgba(232, 93, 4, 0.25);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(232, 93, 4, 0.4);
}

.contact-info-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--charcoal);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.contact-info-item p {
    margin: 0;
    color: var(--charcoal-light);
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info-body a {
    color: var(--charcoal-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-body a:hover {
    color: var(--orange);
}

/* Correos: fila ancha; cada dirección en una sola línea */
.contact-info-item--correos {
    padding-left: 2rem;
    padding-right: 2rem;
}

.contact-email-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.contact-email-list li {
    text-align: center;
}

.contact-email-list a {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .contact-email-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2.5rem;
    }
}

/* Botón cambiar imagen */
.site-image-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.navbar-brand-logo.site-image-wrap {
    display: inline-block;
    width: auto;
}

.producto-img.site-image-wrap {
    position: relative;
}

.swiper-slide.site-image-wrap,
.home-sector-cover.site-image-wrap {
    position: relative;
}

.img-change-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.site-image-wrap:hover .img-change-btn,
.site-image-wrap:focus-within .img-change-btn {
    opacity: 1;
}

.img-change-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-1px);
}

.producto-img.site-image-wrap .img-change-btn {
    opacity: 1;
}

.hero-slide-bg + .img-change-btn,
.home-sector-bg + .img-change-btn {
    bottom: 0.75rem;
    right: 0.75rem;
}

.contact-whatsapp {
    margin-top: 2rem !important;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(232, 93, 4, 0.2);
}

.contact-whatsapp .btn-whatsapp-lg {
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-whatsapp .btn-whatsapp-lg:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
    .contact-card { padding: 2rem 1.5rem; border-radius: 16px; }
    .contact-info-item { padding: 1.25rem 1rem; }
    .contact-info-item i { width: 44px; height: 44px; font-size: 1.35rem; }
    .contact-info-item p { font-size: 0.85rem; }
}
@media (max-width: 576px) {
    .contact-card { padding: 1.5rem 1rem; }
    .contact-info-item { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.25rem 1rem; }
    .contact-info-item i { width: 42px; height: 42px; font-size: 1.2rem; }
    .contact-whatsapp .btn-whatsapp-lg { display: block; width: 100%; text-align: center; }
}

/* Mapa de contacto - Cómo llegar */
.map-section {
    margin-top: 2rem;
}
.map-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #f5f5f5;
}
.map-container iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}
@media (max-width: 576px) {
    .map-container iframe { height: 260px; }
    .map-section { margin-top: 1.5rem; }
}
.map-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--charcoal);
    color: white !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-radius: 0 0 12px 12px;
}
.map-link-btn:hover {
    background: var(--orange);
    color: white !important;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
    color: white;
    padding: 1rem 0 56px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--nav-shell-max), 90%);
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
    border-radius: 999px;
    z-index: 2;
}

/* Onda naranja corporativa en la parte inferior del pie */
.footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23E85D04' d='M0,22 C200,46 400,4 600,20 C800,36 1000,6 1200,24 C1320,34 1380,14 1440,20 L1440,56 L0,56 Z'/%3E%3Cpath d='M0,22 C200,46 400,4 600,20 C800,36 1000,6 1200,24 C1320,34 1380,14 1440,20' fill='none' stroke='%23F48C4A' stroke-opacity='0.55' stroke-width='1.5'/%3E%3C/svg%3E");
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer a {
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a:hover {
    color: var(--orange) !important;
    background: rgba(232, 93, 4, 0.12);
    border-color: rgba(232, 93, 4, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.footer-credit {
    letter-spacing: 0.02em;
    opacity: 0.92;
}

.footer-credit a {
    width: auto;
    height: auto;
    border: none;
    display: inline;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--orange-light) !important;
    background: none;
    transform: none;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
    position: fixed !important;
    /* Siempre a la derecha (incluso si otra regla intenta moverlo) */
    right: max(24px, env(safe-area-inset-right)) !important;
    left: auto !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
    /* Propiedades lógicas (soporta RTL y evita overrides raros) */
    inset-inline-end: max(24px, env(safe-area-inset-right));
    inset-inline-start: auto;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20BD5A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 3s ease-in-out infinite;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        right: max(16px, env(safe-area-inset-right)) !important;
        left: auto !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        inset-inline-end: max(16px, env(safe-area-inset-right));
        inset-inline-start: auto;
    }
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    animation: none;
}

/* ========== IDs para anchors ========== */
#cctv { scroll-margin-top: var(--nav-offset); }

/*
 * Catálogo con hero sticky: al saltar por ancla el navegador solo respetaba --nav-offset
 * y el banner tapaba el inicio de la sección. Se suma una franja ~altura del hero.
 */
.page-seguridad-industrial #dotacion,
.page-seguridad-industrial #manual,
.page-seguridad-industrial #facial,
.page-seguridad-industrial #proteccion-especializada,
.page-seguridad-industrial #ubicacion-mapa,
.page-productos:has(.product-page-header--electronica) #sistemas-vigilancia,
.page-productos:has(.product-page-header--electronica) #alarmas-incendio,
.page-productos:has(.product-page-header--electronica) #infraestructura-tecnologica,
.page-productos:has(.product-page-header--electronica) #otras-soluciones,
.page-productos:has(.product-page-header--electronica) #ubicacion-mapa {
    scroll-margin-top: calc(var(--nav-offset) + clamp(200px, 34vh, 340px));
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .mega-menu {
        max-width: none;
        left: 0 !important;
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero-actions .btn { display: block; width: 100%; margin-right: 0; }
}

/* ========== Decoraciones y efectos dinámicos ========== */
.site-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float-orb 15s ease-in-out infinite;
}

.deco-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.deco-orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
    animation-delay: -5s;
}

.deco-orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(45, 45, 45, 0.08) 0%, transparent 70%);
    top: 60%;
    right: 5%;
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.98); }
}

.deco-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(232, 93, 4, 0.1), transparent);
    animation: pulse-line 4s ease-in-out infinite;
}

.deco-line-left {
    left: 5%;
    top: 0;
}

.deco-line-right {
    right: 5%;
    top: 0;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Hero decorations */
.hero-deco {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(232, 93, 4, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse-ring 3s ease-in-out infinite;
    pointer-events: none;
}

.hero-deco-left {
    left: 2%;
}

.hero-deco-right {
    right: 2%;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.1); }
}

/* Section decorations */
.section-with-deco {
    position: relative;
    overflow: hidden;
}

/* ========== Divisores curvos entre secciones ========== */
.section-curve-bottom { position: relative; }
.section-curve-bottom::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* evita línea de corte */
    height: 64px;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

@media (max-width: 768px) {
    .section-curve-bottom::after { height: 44px; }
}

/* Curva hacia fondo claro (bg-light) */
.curve-to-light::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23F8F9FA' d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28 L1440,80 L0,80 Z'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%23E85D04' stroke-opacity='0.38' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%232D2D2D' stroke-opacity='0.22' stroke-width='7' stroke-linecap='round' transform='translate(0 8)'/%3E%3C/svg%3E");
}

/* Curva hacia blanco (bg-white) */
.curve-to-white::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28 L1440,80 L0,80 Z'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%23E85D04' stroke-opacity='0.42' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%232D2D2D' stroke-opacity='0.20' stroke-width='7' stroke-linecap='round' transform='translate(0 8)'/%3E%3C/svg%3E");
}

/* Curva hacia oscuro (bg-dark / black) */
.curve-to-dark::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%230D0D0D' d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28 L1440,80 L0,80 Z'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%23E85D04' stroke-opacity='0.55' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%232D2D2D' stroke-opacity='0.55' stroke-width='7' stroke-linecap='round' transform='translate(0 8)'/%3E%3C/svg%3E");
}

/* Curva hacia galería (inicio del gradiente) */
.curve-to-gallery::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23F8F9FA' d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28 L1440,80 L0,80 Z'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%23E85D04' stroke-opacity='0.38' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M0,28 C240,58 480,6 720,28 C960,50 1200,6 1440,28' fill='none' stroke='%232D2D2D' stroke-opacity='0.22' stroke-width='7' stroke-linecap='round' transform='translate(0 8)'/%3E%3C/svg%3E");
}

.section-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-deco-orange {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float-orb 12s ease-in-out infinite;
}

.section-deco-grid {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(232, 93, 4, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-shift 20s linear infinite;
}

@keyframes grid-shift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.section-deco-glow {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
    animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.section-deco-circles {
    top: 20%;
    right: 3%;
    width: 140px;
    height: 140px;
}

.section-deco-circles::before,
.section-deco-circles::after {
    content: '';
    position: absolute;
    border: 1px dashed rgba(232, 93, 4, 0.15);
    border-radius: 50%;
    animation: rotate-circle 25s linear infinite;
}

.section-deco-circles::before {
    width: 80px;
    height: 80px;
    top: 0;
    right: 0;
}

.section-deco-circles::after {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
    animation-direction: reverse;
    animation-duration: 20s;
}

@keyframes rotate-circle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Asegurar que el contenido esté por encima de las decoraciones */
.section-with-deco .container {
    position: relative;
    z-index: 1;
}

/* ========== Página La Empresa ========== */
.page-header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item a:hover { color: var(--orange); }
.page-header .breadcrumb-item.active { color: white; }

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.empresa-main { padding-bottom: 4rem; }

.empresa-sidebar {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    padding: 1rem;
    top: 100px;
}

.empresa-sidebar .nav-link {
    color: var(--charcoal) !important;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empresa-sidebar .nav-link:hover {
    background: rgba(232, 93, 4, 0.08);
    color: var(--orange) !important;
}

.empresa-sidebar .nav-link i { font-size: 1.1rem; color: var(--orange); }

.empresa-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--grey-border);
}

.empresa-section:last-of-type { border-bottom: none; }

.empresa-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.empresa-section-header i {
    font-size: 1.5rem;
    color: var(--orange);
}

.empresa-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.empresa-content p {
    color: var(--charcoal-light);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.empresa-info-card .info-grid {
    display: grid;
    gap: 1rem;
}

.empresa-info-card .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.empresa-info-card .info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empresa-info-card .info-value {
    font-size: 0.95rem;
    color: var(--charcoal);
}

/* ========== Páginas de Productos ========== */
.page-productos {
    padding-top: var(--nav-offset);
    background: #f8f9fa;
    position: relative;
}
/* Textura de fondo en la zona de listado de productos */
.productos-main {
    position: relative;
}
.productos-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 93, 4, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 93, 4, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}
.productos-main > .container {
    position: relative;
    z-index: 1;
}

.product-page-header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%);
    color: white;
    padding: 3rem 0;
    position: sticky;
    top: var(--nav-offset);
    z-index: 1020;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Páginas de catálogo: el header NO debe quedar “flotando”/solapando el navbar al hacer scroll.
   Comportamiento como Inicio: el contenido siempre pasa por debajo del menú. */
.page-productos .product-page-header {
    position: relative;
    top: 0;
    z-index: 1;
}

/* Asegurar que el navbar siempre quede por encima del contenido */
.navbar.navbar-main.fixed-top {
    z-index: 11000 !important;
}

/* Banners catálogo: foto de fondo + velo para legibilidad */
.product-page-header--industrial {
    background-image: linear-gradient(135deg, rgba(28, 28, 32, 0.9) 0%, rgba(12, 12, 16, 0.88) 100%),
        url('../docs/Galeria/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-seguridad-industrial .product-page-header--industrial {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
}

/* Menos altura del bloque portafolio: reduce el “hueco” visual bajo el texto del hero */
.page-seguridad-industrial .portfolio-download-card {
    padding: 1.25rem 1.15rem;
}
.page-seguridad-industrial .portfolio-download-card i {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}
.page-seguridad-industrial .portfolio-download-card h4 {
    font-size: 0.95rem;
}
.page-seguridad-industrial .portfolio-download-card p {
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
}
.page-seguridad-industrial .btn-download-portfolio {
    padding: 0.55rem 1rem;
    margin-bottom: 0.35rem;
}
.page-seguridad-industrial .btn-whatsapp-outline {
    padding: 0.45rem 0.85rem;
}

/* Primer bloque (dotación): sin margen extra (el aire lo da el padding del .container) */
.page-seguridad-industrial .productos-main > .container > #dotacion {
    margin-top: 0;
    padding-top: 0;
}

.product-page-header--electronica {
    background-image: linear-gradient(135deg, rgba(28, 28, 32, 0.9) 0%, rgba(12, 12, 16, 0.88) 100%),
        url('../docs/Galeria/slide2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Seguridad electrónica: más aire bajo el banner antes de «Sistemas de vigilancia» */
.page-productos .product-category--electronica-vigilancia {
    margin-top: 2.75rem;
    padding-top: 1rem;
}

.page-productos .product-category--electronica-vigilancia .product-category-title {
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.product-page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.product-page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.product-page-header .breadcrumb-item a:hover { color: var(--orange); }
.product-page-header .breadcrumb-item.active { color: white; }

.product-page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-page-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 600px;
}

.portfolio-download-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}
.portfolio-download-card:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.portfolio-download-card i {
    font-size: 2.5rem;
    color: var(--orange);
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-download-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.portfolio-download-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.btn-download-portfolio {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-download-portfolio:hover {
    background: linear-gradient(135deg, var(--orange-dark) 0%, #B84A02 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp-outline {
    display: block;
    width: 100%;
    background: transparent;
    color: #25D366;
    border: 2px solid #25D366;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-whatsapp-outline:hover {
    background: #25D366;
    color: white;
}

.productos-main { padding: 3rem 0 4rem; }

/* Seguridad industrial: menos hueco entre banner sticky y primera fila de tarjetas */
.page-seguridad-industrial .productos-main {
    /* Evitar que las tarjetas queden “montadas” sobre el banner */
    padding-top: 1.25rem;
    padding-bottom: 4rem;
}

.page-seguridad-industrial .productos-main > .container {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(232, 93, 4, 0.14);
}

/* Separación clara entre Dotación (sin título visible) y la siguiente sección */
.page-seguridad-industrial #dotacion {
    padding-bottom: 0.75rem;
}

.page-seguridad-industrial #manual {
    margin-top: 1.25rem;
}

/* Filtros: barra más llamativa */
.product-filters-row {
    margin-bottom: 2rem;
    position: sticky;
    top: calc(var(--nav-offset) - 20px);
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 93, 4, 0.2);
    border-radius: 16px;
    padding: 1rem 1rem;
    box-shadow: 0 8px 32px rgba(232, 93, 4, 0.08), 0 2px 12px rgba(0,0,0,0.06);
}
.product-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.filter-chip {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--grey-border);
    background: var(--white);
    color: var(--charcoal);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.filter-chip:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(232, 93, 4, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.filter-chip.active {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-orange);
}

/*
 * Anclas en catálogo: el hero es sticky bajo el menú; el offset real lo definen
 * los selectores con #id más abajo (industrial / electrónica). Aquí solo páginas
 * producto sin esas reglas.
 */
.page-productos .product-category:not([id]) {
    scroll-margin-top: var(--nav-offset);
}

/* En móvil: chips en una sola fila con scroll horizontal */
@media (max-width: 768px) {
    .product-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .product-filters::-webkit-scrollbar { height: 8px; }
    .product-filters::-webkit-scrollbar-thumb {
        background: rgba(45, 45, 45, 0.25);
        border-radius: 999px;
    }
    .filter-label { white-space: nowrap; }
    .filter-chip { white-space: nowrap; flex: 0 0 auto; }
}

/* Mapa en página productos */
.productos-map-section {
    margin-bottom: 3rem;
}
.productos-map-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}
.productos-map-desc {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 1rem;
}
.productos-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.productos-map-container {
    position: relative;
    height: 280px;
    background: #f0f0f0;
}
.productos-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.btn-map-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--charcoal);
    color: white !important;
    font-weight: 500;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-map-directions:hover {
    background: var(--orange);
    color: white !important;
}

.product-category {
    margin-bottom: 3.5rem;
    text-align: center;
}

/* Títulos de categoría: banda tipo encabezado (no parecen botón flotante) */
.product-category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: var(--charcoal);
    padding: 0.85rem 1.25rem 0.85rem 1.35rem;
    display: block;
    width: 100%;
    max-width: 920px;
    letter-spacing: 0.02em;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid rgba(232, 93, 4, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    position: relative;
}
.product-category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 55%;
    min-height: 1.5rem;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 6px 0 0 6px;
}
.product-category-title .text-orange {
    color: var(--orange) !important;
    font-weight: 800;
    text-shadow: none;
}

/* Filas de productos: columnas a la misma altura y tarjetas alineadas */
.product-category .row {
    justify-content: center;
    align-items: stretch;
}

.page-productos .product-category .row > [class*="col-"] {
    display: flex;
}

.page-productos .product-category .producto-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-productos .product-category .producto-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.page-productos .product-category .producto-info .btn-ficha-sm {
    margin-top: auto;
    align-self: flex-start;
}

/* Cuadros de producto: forma y estilo llamativos */
.producto-card {
    background: var(--white);
    border: 2px solid rgba(232, 93, 4, 0.25);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-slow);
    box-shadow: 0 6px 24px rgba(232, 93, 4, 0.08), 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
}

.producto-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    z-index: 1;
}

.producto-card:hover {
    border-color: var(--orange);
    box-shadow: 0 16px 40px rgba(232, 93, 4, 0.2), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.producto-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(232, 93, 4, 0.05) 0%, #f8f9fa 100%);
    padding: 1rem;
}

.producto-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.producto-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 93, 4, 0.06);
}

.producto-icon i {
    font-size: 3rem;
    color: var(--orange);
}

.producto-info {
    padding: 1.25rem;
}

.producto-info h4 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--charcoal);
    padding-left: 0.75rem;
    border-left: 3px solid var(--orange);
    line-height: 1.3;
}
.producto-card:hover .producto-info h4 {
    color: var(--orange);
}

.producto-info p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.btn-ficha-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--orange);
    transition: all 0.2s;
}

.btn-ficha-sm:hover {
    background: var(--orange);
    color: white;
}

.electronica-producto .producto-icon { height: 100px; }

.portfolio-cta {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
}
.portfolio-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.portfolio-cta-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portfolio-cta-content p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.portfolio-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-cta-buttons .btn-download-portfolio,
.portfolio-cta-buttons .btn-whatsapp-outline {
    display: inline-block;
    width: auto;
}

.portfolio-cta-buttons .btn-whatsapp-outline {
    border-color: white;
    color: white;
}

.portfolio-cta-buttons .btn-whatsapp-outline:hover {
    background: white;
    color: var(--orange);
}

/* ========== Responsive global ========== */
img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 576px) {
    .footer-bottom p { font-size: 0.8rem; padding: 0 0.5rem; }
    .btn-gallery-cta { display: block; width: 100%; text-align: center; }
}
