/* ==========================================================================
   DOUBLE STEEL — Hoja de estilos
   Paleta original: amarillo industrial + negro carbón
   ========================================================================== */

/* --- VARIABLES Y RESET --- */
:root {
    --primary: #FFD700;
    /* Amarillo Industrial */
    --primary-dark: #ccac00;
    --secondary: #1a1a1a;
    /* Negro Carbón */
    --bg-dark: #0f0f0f;
    --surface: #161616;
    --surface-2: #1f1f1f;
    --border: #2c2c2c;
    --text-light: #f4f4f4;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --whatsapp: #25d366;
    --danger: #ff5a5a;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --header-h: 86px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

h4 {
    font-family: 'Montserrat', sans-serif;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, video, svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--primary);
    color: var(--secondary);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .35s var(--ease), background-color .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
    text-align: center;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    isolation: isolate;
    line-height: 1.2;
}

.btn i {
    transition: transform .3s var(--ease);
}

.btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.btn-sm {
    padding: 11px 20px;
    font-size: .82rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-ghost {
    background: var(--surface-2);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    background: #262626;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1fb457;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, .25);
}

/* Destello metálico que recorre el botón */
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes shine {
    0%, 70% { left: -75%; }
    100% { left: 130%; }
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-light);
    background: var(--surface-2);
    transition: var(--transition);
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.link-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.link-btn i {
    transition: transform .3s var(--ease);
}

.link-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   REVEAL (animaciones al hacer scroll) — solo con JS activo
   ========================================================================== */
.js [data-reveal] {
    opacity: 0;
    transition:
        opacity .9s var(--ease) var(--delay, 0s),
        transform 1s var(--ease) var(--delay, 0s),
        clip-path 1.2s var(--ease-in-out) var(--delay, 0s),
        filter .9s var(--ease) var(--delay, 0s);
    will-change: opacity, transform;
}

.js [data-reveal="fade-up"] { transform: translateY(50px); }
.js [data-reveal="fade-down"] { transform: translateY(-50px); }
.js [data-reveal="fade-left"] { transform: translateX(60px); }
.js [data-reveal="fade-right"] { transform: translateX(-60px); }
.js [data-reveal="zoom"] { transform: scale(.85); filter: blur(6px); }

.js [data-reveal="clip-left"] {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
}

.js [data-reveal="clip-up"] {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
}

.js [data-reveal^="clip"] img {
    transform: scale(1.3);
    transition: transform 1.6s var(--ease) var(--delay, 0s);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0 0 0 0);
}

.js [data-reveal^="clip"].is-visible img {
    transform: scale(1);
}

/* ==========================================================================
   PRELOADER — cortina metálica de bodega que se enrolla
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    pointer-events: none;
    display: none;
}

.js .preloader {
    display: block;
    pointer-events: all;
}

.preloader-door {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .65)),
        repeating-linear-gradient(180deg, #2a2a2a 0 10px, #1c1c1c 10px 13px, #333 13px 15px, #222 15px 26px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.1s var(--ease-in-out);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
}

.preloader-hazard {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22px;
    background: repeating-linear-gradient(-45deg, var(--primary) 0 18px, #111 18px 36px);
    border-top: 3px solid #000;
}

.preloader-inner {
    text-align: center;
    padding: 40px 50px;
    background: rgba(10, 10, 10, .75);
    border: 1px solid rgba(255, 215, 0, .25);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.preloader-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 18px;
    animation: logoPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, .25));
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, .15)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 22px rgba(255, 215, 0, .45)); }
}

.preloader-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 8px;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.preloader-brand span {
    color: var(--primary);
}

.preloader-bar {
    width: 220px;
    height: 3px;
    background: #333;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 3px;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    transition: width .25s linear;
}

.preloader-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: .85rem;
    letter-spacing: 2px;
}

.preloader.is-done {
    pointer-events: none;
}

.preloader.is-done .preloader-door {
    transform: translateY(-105%);
}

.preloader.is-done .preloader-inner {
    opacity: 0;
    transform: translateY(-30px);
    transition: all .4s ease;
}

/* --- Barra de progreso --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1100;
    box-shadow: 0 0 10px rgba(255, 215, 0, .6);
    pointer-events: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition: transform .45s var(--ease), background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}

header.scrolled {
    background-color: rgba(20, 20, 20, 0.88);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, .08);
}

header.hide {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1320px;
}

.logo img {
    height: 62px;
    width: auto;
    transition: height .35s var(--ease);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

header.scrolled .logo img {
    height: 48px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 34px;
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
}

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

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

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition);
    background: rgba(0, 0, 0, .25);
}

.cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--secondary);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform .4s var(--ease);
}

.has-items .cart-badge,
.cart-badge.has-items {
    transform: scale(1);
}

.cart-badge.bump {
    animation: bump .5s var(--ease);
}

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); }
    100% { transform: scale(1); }
}

.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    position: relative;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .25);
}

.mobile-toggle span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .45s var(--ease), opacity .3s ease, top .45s var(--ease);
}

.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { top: 22px; width: 14px; }
.mobile-toggle span:nth-child(3) { top: 28px; }

.mobile-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--primary); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.mobile-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--primary); }

/* --- Menú móvil --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 215, 0, .12), transparent 50%),
        #0c0c0c;
    clip-path: circle(0% at calc(100% - 45px) 45px);
    transition: clip-path .8s var(--ease-in-out);
}

.mobile-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background: repeating-linear-gradient(-45deg, var(--primary) 0 14px, #111 14px 28px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease) .1s;
}

.mobile-menu.is-open {
    visibility: visible;
    pointer-events: all;
}

.mobile-menu.is-open .mobile-menu-bg {
    clip-path: circle(150% at calc(100% - 45px) 45px);
}

.mobile-menu.is-open::after {
    transform: scaleX(1);
    transition-delay: .4s;
}

.mobile-menu-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 120px 30px 30px;
    gap: 6px;
}

.mobile-menu-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 7vw, 2.3rem);
    line-height: 1.25;
    display: flex;
    align-items: baseline;
    gap: 14px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s ease;
}

.mobile-menu-nav a span {
    font-size: .8rem;
    color: var(--primary);
    font-weight: 700;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.is-active {
    color: var(--primary);
}

.mobile-menu.is-open .mobile-menu-nav a {
    opacity: 1;
    transform: none;
}

.mobile-menu-footer {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 10px 30px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity .5s ease;
}

.mobile-menu.is-open .mobile-menu-footer {
    opacity: 1;
    transition-delay: .6s;
}

.mobile-menu-footer a {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: .9rem;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.mobile-menu-footer a i {
    color: var(--primary);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 0 170px;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #000 url('../img/hero-poster.jpg') center/cover no-repeat;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.1);
    transform: scale(var(--hero-scale, 1.08));
    transition: transform .1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .65) 75%),
        linear-gradient(180deg, rgba(15, 15, 15, .55) 0%, transparent 30%, transparent 60%, var(--bg-dark) 100%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.hero-sparks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-content {
    will-change: transform, opacity;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 215, 0, .35);
    border-radius: 30px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    font-size: .82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 26px;
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, .6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, .6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.hero-title {
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    line-height: 1.05;
    margin-bottom: 26px;
    font-weight: 800;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.split-text {
    display: block;
    text-wrap: balance;
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 .02em .08em;
    margin-bottom: -.08em;
}

.split-text .char {
    display: inline-block;
}

.js .split-text .char {
    transform: translateY(115%) rotate(8deg);
    opacity: 0;
}

.is-loaded .split-text .char {
    animation: charUp 1s var(--ease) forwards;
    animation-delay: calc(var(--i) * 28ms + .15s);
}

@keyframes charUp {
    to { transform: none; opacity: 1; }
}

.hero-rotator {
    display: block;
    position: relative;
    height: 1.15em;
    color: var(--primary);
    white-space: nowrap;
    perspective: 600px;
}

.hero-rotator span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateY(70%) rotateX(-70deg);
    filter: blur(10px);
    transition: transform .8s var(--ease), opacity .6s ease, filter .6s ease;
    text-shadow: 0 0 40px rgba(255, 215, 0, .35);
}

.hero-rotator span.is-active {
    opacity: 1;
    transform: none;
    filter: none;
}

.hero-rotator span.is-leaving {
    opacity: 0;
    transform: translateY(-70%) rotateX(70deg);
    filter: blur(10px);
}

.js .hero-rotator {
    opacity: 0;
    clip-path: inset(0 50% 0 50%);
}

.is-loaded .hero-rotator {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s var(--ease-in-out) .8s, opacity .3s ease .8s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 38px;
    color: #cfcfcf;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: .95rem;
    color: #d8d8d8;
    border-bottom: 1px dashed rgba(255, 215, 0, .6);
    padding-bottom: 3px;
}

.hero-link i {
    color: var(--primary);
}

.hero-link:hover {
    color: var(--primary);
}

.js .hero-anim {
    opacity: 0;
    transform: translateY(30px);
}

.is-loaded .hero-anim {
    animation: heroIn 1s var(--ease) var(--d, 0s) forwards;
}

@keyframes heroIn {
    to { opacity: 1; transform: none; }
}

.hero-features {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid rgba(255, 215, 0, .18);
    background: linear-gradient(180deg, rgba(10, 10, 10, .35), rgba(10, 10, 10, .85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-features .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 16px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, .06);
    transition: background .3s ease;
}

.hero-feature:last-child {
    border-right: none;
}

.hero-feature:hover {
    background: rgba(255, 215, 0, .05);
}

.hero-feature i {
    font-size: 1.4rem;
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hero-feature span {
    font-size: .82rem;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%);
    opacity: .8;
}

.scroll-indicator .mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator .wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--primary);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0% { opacity: 0; transform: translateY(-4px); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-wrap {
    position: relative;
    padding: 40px 0 30px;
    overflow: hidden;
    background: var(--bg-dark);
}

.marquee {
    width: 110%;
    margin-left: -5%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-yellow {
    background: var(--primary);
    color: var(--secondary);
    transform: rotate(-2deg);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.marquee-dark {
    background: #141414;
    transform: rotate(1.4deg);
    margin-top: -12px;
    border-top: 1px solid #262626;
    border-bottom: 1px solid #262626;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    will-change: transform;
}

.marquee-track span,
.marquee-track i {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-style: normal;
    padding: 14px 22px;
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    letter-spacing: 1px;
}

.marquee-yellow i {
    font-size: 1rem;
}

.marquee-dark span {
    color: transparent;
    -webkit-text-stroke: 1px #6a6a6a;
}

.marquee-dark i {
    color: var(--primary);
    font-size: .7rem;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
section {
    padding: 110px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title.align-left {
    text-align: left;
    margin-bottom: 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title .eyebrow {
    display: flex;
    justify-content: center;
}

.section-title.align-left .eyebrow {
    justify-content: flex-start;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.section-title h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
    line-height: 1.15;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.js .section-title h2::after {
    width: 0;
    transition: width 1s var(--ease) .45s;
}

.js .section-title.is-visible h2::after {
    width: 80px;
}

.section-title.align-left h2::after {
    left: 0;
    transform: none;
}

.section-title p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 10px auto 0;
}

.center-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   SOBRE NOSOTROS
   ========================================================================== */
#nosotros {
    padding-top: 90px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.about-text p {
    color: #cfcfcf;
    margin-bottom: 14px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0 34px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .3s ease, transform .4s var(--ease);
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-item span {
    font-weight: 500;
}

.about-img {
    position: relative;
}

.about-img-inner {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    border-left: 10px solid var(--primary);
}

.about-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-frame {
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 2px solid rgba(255, 215, 0, .35);
    border-radius: 8px;
    z-index: 0;
}

.about-badge-wrap {
    position: absolute;
    right: -18px;
    bottom: -26px;
    z-index: 2;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--primary);
    color: var(--secondary);
    padding: 16px 22px;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    animation: floatY 5s ease-in-out infinite;
}

.about-badge i {
    font-size: 1.8rem;
}

.about-badge strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: .95rem;
    line-height: 1.1;
}

.about-badge span {
    font-size: .85rem;
    font-weight: 500;
}

@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-band {
    padding: 90px 0;
    overflow: hidden;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    isolation: isolate;
}

.stats-bg {
    position: absolute;
    inset: -25% 0;
    z-index: -1;
    background:
        linear-gradient(rgba(10, 10, 10, .86), rgba(10, 10, 10, .9)),
        url('../img/instalaciones/perfiles.jpg') center/cover no-repeat;
    will-change: transform;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 10px;
    position: relative;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(transparent, rgba(255, 215, 0, .4), transparent);
}

.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 4rem);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, .25);
}

.stat-num em {
    font-style: normal;
    font-size: .55em;
    margin-left: 3px;
    color: var(--white);
}

.stat p {
    color: #cfcfcf;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .8rem;
}

/* ==========================================================================
   INSTALACIONES (galería)
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111;
    border: 1px solid var(--border);
    padding: 0;
    text-align: left;
}

.gallery-item.g-big {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.g-wide {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.08) !important;
    transition: transform 1.2s var(--ease) !important;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .85));
    transition: opacity .4s ease;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-90deg);
    transition: transform .45s var(--ease);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    transform: scale(1) rotate(0);
}

.gallery-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(6px);
    transition: transform .45s var(--ease);
}

.gallery-caption i {
    color: var(--primary);
}

.gallery-item:hover .gallery-caption {
    transform: none;
}

/* ==========================================================================
   PRODUCTOS
   ========================================================================== */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .5px;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}

.chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chip.is-active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    font-weight: 700;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .12);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.js .product-card.is-visible {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: border-color .3s ease, box-shadow .4s ease, transform .5s var(--ease), opacity .9s var(--ease) var(--delay, 0s), filter .9s var(--ease) var(--delay, 0s);
}

.js .product-card.is-visible.tilting {
    transition: border-color .3s ease, box-shadow .4s ease, transform .12s linear;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 215, 0, .2), 0 10px 30px rgba(255, 204, 0, 0.12);
}

.product-card:hover::after {
    opacity: 1;
}

.product-media {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #333;
    transition: border-color 0.3s ease;
}

.product-card:hover .product-media {
    border-bottom-color: var(--primary);
}

.product-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .9s var(--ease);
}

.product-card:hover .product-media img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, .4);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-tag.static {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h3 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-body p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
    flex: 1;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card.is-hidden {
    display: none;
}

.catalog-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0 10px;
}

.catalog-empty a {
    color: var(--primary);
    border-bottom: 1px solid;
}

/* ==========================================================================
   CALCULADORA
   ========================================================================== */
#calculadora {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 215, 0, .05), transparent 40%),
        var(--bg-dark);
}

.calc {
    background: linear-gradient(180deg, #1a1a1a, #141414);
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    position: relative;
}

.calc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(-45deg, var(--primary) 0 12px, #111 12px 24px);
    z-index: 2;
}

.calc-tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #2a2a2a;
    background: #121212;
    padding-top: 4px;
}

.calc-tabs::-webkit-scrollbar {
    display: none;
}

.calc-tab {
    flex: 1 0 auto;
    min-width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px 16px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .3s ease, background .3s ease;
    white-space: nowrap;
}

.calc-tab svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform .45s var(--ease);
}

.calc-tab:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .02);
}

.calc-tab:hover svg {
    transform: translateY(-3px);
}

.calc-tab.is-active {
    color: var(--primary);
    background: rgba(255, 215, 0, .04);
}

.calc-tab.is-active svg {
    transform: scale(1.12);
}

.calc-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    transition: transform .55s var(--ease), width .55s var(--ease);
}

.calc-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.calc-form {
    padding: 32px;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
}

.calc-tip {
    margin-top: auto;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px dashed #3a3a3a;
    border-radius: 8px;
    background: rgba(255, 215, 0, .03);
    font-size: .86rem;
    color: var(--text-muted);
}

.calc-tip i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 2px;
}

.calc-tip strong {
    color: var(--text-light);
}

.calc-form-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.calc-form-head h3 {
    font-size: 1.25rem;
    color: var(--white);
}

.calc-hint {
    font-size: .8rem;
    color: var(--text-muted);
}

.calc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.field.is-hidden {
    display: none;
}

.calc-fields.anim .field {
    animation: fieldIn .6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes fieldIn {
    from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

.field > label,
.calc-qty label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field-control {
    display: flex;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #222;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.field-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, .12);
}

.field-control.invalid {
    border-color: var(--danger);
    animation: shake .4s;
}

.field-control input,
.field-control select {
    background: transparent;
    border: none;
    outline: none;
    padding: 12px;
    color: var(--white);
    min-width: 0;
}

.field-control input {
    flex: 1;
    width: 100%;
}

.field-control select {
    cursor: pointer;
}

.field-control select.unit {
    flex: 0 0 auto;
    width: 74px;
    border-left: 1px solid #3a3a3a;
    background: #1b1b1b;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.field-control select.full-select {
    width: 100%;
}

select option,
select optgroup {
    background: #1b1b1b;
    color: var(--white);
}

.field-custom {
    display: none;
    margin-top: 2px;
}

.field-custom.is-open {
    display: flex;
    animation: fieldIn .45s var(--ease);
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-chips button {
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px dashed #444;
    font-size: .75rem;
    color: #cfcfcf;
    transition: var(--transition);
}

.quick-chips button:hover,
.quick-chips button.is-active {
    border-style: solid;
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 215, 0, .06);
}

.calc-qty {
    margin-top: 26px;
    margin-bottom: 26px;
    padding-top: 22px;
    border-top: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stepper {
    display: flex;
    align-items: center;
    border: 1px solid #3a3a3a;
    border-radius: 40px;
    overflow: hidden;
    background: #222;
}

.stepper button {
    width: 44px;
    height: 44px;
    color: var(--primary);
    transition: background .2s ease;
}

.stepper button:hover {
    background: rgba(255, 215, 0, .1);
}

.stepper button:active {
    transform: scale(.9);
}

.stepper input {
    width: 76px;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-visual {
    display: flex;
    flex-direction: column;
    background: #0e0e0e;
}

.calc-drawing {
    position: relative;
    flex: 1;
    min-height: 260px;
    background-color: #0b0d10;
    background-image:
        linear-gradient(rgba(255, 215, 0, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, .06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.calc-drawing svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    overflow: visible;
}

.calc-drawing-tag {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.calc-drawing-tag i {
    color: var(--primary);
}

/* Dibujo técnico */
.shape {
    fill: url(#steelGrad);
    stroke: var(--primary);
    stroke-width: 1.6;
    stroke-linejoin: round;
    fill-rule: evenodd;
}

.shape-face {
    fill: url(#steelFace);
    stroke: var(--primary);
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.draw-anim .shape,
.draw-anim .shape-face {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    fill-opacity: 0;
    animation: drawStroke 1.3s var(--ease-in-out) forwards, fillIn .7s ease .8s forwards;
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

@keyframes fillIn {
    to { fill-opacity: 1; }
}

.dim line,
.dim path {
    stroke: #8a8f98;
    stroke-width: .9;
    fill: none;
}

.dim .tick {
    stroke: var(--primary);
    stroke-width: 1.2;
}

.dim text {
    fill: #e8e8e8;
    font-size: 10.5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.dim .bg {
    fill: #0b0d10;
    stroke: none;
}

.draw-anim .dim {
    opacity: 0;
    animation: dimIn .6s ease 1s forwards;
}

@keyframes dimIn {
    to { opacity: 1; }
}

.svg-note {
    fill: var(--primary);
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.calc-result {
    padding: 26px 28px 28px;
    background: linear-gradient(180deg, rgba(255, 215, 0, .05), transparent 60%);
    border-top: 2px dashed var(--primary);
}

.calc-result-label {
    font-size: .76rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.calc-total {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 3.3rem);
    line-height: 1.1;
    margin: 4px 0 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.calc-total small {
    font-size: 1.1rem;
    color: var(--primary);
}

.calc-total.flash span {
    animation: flash .6s ease;
}

@keyframes flash {
    0% { color: var(--primary); text-shadow: 0 0 30px rgba(255, 215, 0, .7); }
    100% { color: var(--white); text-shadow: none; }
}

.calc-substats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.calc-substats div {
    background: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.calc-substats strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.calc-substats small {
    color: var(--text-muted);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.calc-actions {
    display: flex;
    gap: 10px;
}

.calc-actions .btn-primary {
    flex: 1;
}

.calc-actions .btn-ghost {
    padding: 15px 18px;
}

.calc-orderbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 28px;
    background: #101010;
    border-top: 1px solid #2a2a2a;
}

.calc-orderbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfcfcf;
}

.calc-orderbar-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.calc-orderbar-info strong {
    color: var(--white);
}

.calc-orderbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calc-orderbar.is-empty .calc-orderbar-actions {
    opacity: .45;
    pointer-events: none;
}

.calc-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.calc.highlight {
    animation: calcGlow 1.6s ease;
}

@keyframes calcGlow {
    0%, 100% { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
    30% { box-shadow: 0 0 0 3px var(--primary), 0 0 60px rgba(255, 215, 0, .35); }
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
#servicios {
    background-color: #111;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    text-align: center;
    padding: 46px 34px 40px;
    background-color: var(--secondary);
    border-radius: 8px;
    border: 1px solid #262626;
    overflow: hidden;
    isolation: isolate;
    transition: color .45s ease, transform .5s var(--ease), border-color .3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .6s var(--ease-in-out);
    z-index: -1;
}

.service-card:hover {
    color: var(--secondary);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #3a3a3a;
    transition: -webkit-text-stroke-color .4s ease;
}

.service-card:hover .service-num {
    -webkit-text-stroke-color: rgba(0, 0, 0, .35);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: color .45s ease, transform .6s var(--ease);
}

.service-card:hover i {
    color: var(--secondary);
    transform: translateY(-6px) rotate(-8deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: .95rem;
    opacity: .9;
}

/* Proceso */
.process {
    margin-top: 100px;
    position: relative;
}

.process-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 50px;
}

.process-track {
    position: relative;
}

.process-line {
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #2c2c2c;
}

.process-line span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 12px var(--primary);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    counter-reset: step;
}

.process-steps li {
    text-align: center;
    padding: 0 10px;
}

.process-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #333;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #777;
    position: relative;
    transition: border-color .5s ease, color .5s ease, box-shadow .5s ease, transform .6s var(--ease);
}

.process-steps li.is-reached .process-icon {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, .08), 0 0 30px rgba(255, 215, 0, .25);
    transform: scale(1.06);
}

.process-steps h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.process-steps p {
    color: var(--text-muted);
    font-size: .92rem;
}

/* ==========================================================================
   COTIZACIÓN
   ========================================================================== */
.quote-section {
    overflow: hidden;
    isolation: isolate;
}

.quote-bg {
    position: absolute;
    inset: -20% 0;
    z-index: -1;
    background:
        linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88)),
        url('../img/instalaciones/interior.jpg') center/cover no-repeat;
    will-change: transform;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.quote-intro h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 14px;
}

.quote-lead {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.quote-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: #ddd;
}

.quote-points i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, .1);
    border: 1px solid rgba(255, 215, 0, .35);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-form {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-top: 4px solid var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 22px 15px 10px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: var(--white);
    border-radius: 6px;
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
    resize: vertical;
}

.form-group select {
    padding: 22px 15px 10px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #303030;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .1);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .35s var(--ease), color .3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group label.label-static {
    transform: translateY(-10px) scale(.78);
    color: var(--primary);
}

.form-error {
    display: none;
    font-size: .78rem;
    color: var(--danger);
    margin-top: 6px;
}

.form-group.has-error input {
    border-color: var(--danger);
    animation: shake .4s;
}

.form-group.has-error .form-error {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    cursor: pointer;
    font-size: .92rem;
    color: #ddd;
}

.check[hidden] {
    display: none;
}

.check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: transparent;
    flex-shrink: 0;
    transition: var(--transition);
}

.check input:checked + .check-box {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.check input:focus-visible + .check-box {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform .45s var(--ease);
}

.faq-item.is-open {
    border-color: #3a3a3a;
}

.faq-item.is-open::before {
    transform: scaleY(1);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
}

.faq-q i {
    color: var(--primary);
    transition: transform .45s var(--ease);
    flex-shrink: 0;
}

.faq-item.is-open .faq-q i {
    transform: rotate(135deg);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s var(--ease);
}

.faq-a > div {
    overflow: hidden;
}

.faq-a p {
    padding: 0 26px 22px;
    color: #c9c9c9;
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
#contacto {
    background-color: #111;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info h3 {
    margin-bottom: 18px;
}

.open-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .88rem;
    margin-bottom: 28px;
}

.open-status .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #777;
}

.open-status.open .pulse {
    background: var(--whatsapp);
    animation: pulseGreen 1.8s infinite;
}

.open-status.closed .pulse {
    background: var(--danger);
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    transition: transform .4s var(--ease);
}

.contact-item:hover {
    transform: translateX(6px);
}

.contact-item > i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 215, 0, .08);
    border: 1px solid rgba(255, 215, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover > i {
    background: var(--primary);
    color: var(--secondary);
}

.contact-item h4 {
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-item p {
    color: #cfcfcf;
}

.contact-item p a:hover {
    color: var(--primary);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 500;
}

.contact-link:hover {
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #333;
    transition: transform .4s var(--ease), background-color .3s ease, color .3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-4px) rotate(8deg);
}

.map-container {
    min-height: 460px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}

.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(.35) contrast(1.05);
    transition: filter .5s ease;
}

.map-container:hover iframe {
    filter: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #000;
    padding: 0 0 30px;
    position: relative;
}

.footer-hazard {
    height: 10px;
    background: repeating-linear-gradient(-45deg, var(--primary) 0 16px, #111 16px 32px);
    margin-bottom: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 18px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: .92rem;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .95rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cfcfcf;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color .3s ease, padding .35s var(--ease);
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary);
    margin-right: 0;
    transition: width .35s var(--ease), margin .35s var(--ease);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::before {
    width: 12px;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FLOTANTES
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform .4s var(--ease);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tip {
    position: absolute;
    right: 72px;
    top: 50%;
    white-space: nowrap;
    background: #fff;
    color: #111;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translate(10px, -50%);
    pointer-events: none;
    transition: opacity .3s ease, transform .4s var(--ease);
}

.whatsapp-tip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: 0;
    border-left-color: #fff;
}

.whatsapp-float:hover .whatsapp-tip,
.whatsapp-float.show-tip .whatsapp-tip {
    opacity: 1;
    transform: translate(0, -50%);
}

.back-to-top {
    position: fixed;
    right: 36px;
    bottom: 106px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .9);
    color: var(--primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s var(--ease);
    backdrop-filter: blur(6px);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.back-to-top svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.back-to-top circle {
    fill: none;
    stroke: #333;
    stroke-width: 3;
}

.back-to-top circle.ring {
    stroke: var(--primary);
    stroke-dasharray: 132;
    stroke-dashoffset: 132;
    stroke-linecap: round;
}

.back-to-top:hover i {
    animation: upDown .8s ease infinite;
}

@keyframes upDown {
    50% { transform: translateY(-4px); }
}

.orden-fab {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    font-size: 1.35rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, .3);
    transform: scale(0);
    transition: transform .5s var(--ease);
}

.orden-fab.has-items {
    transform: scale(1);
}

.orden-fab:hover {
    transform: scale(1.08);
}

.orden-fab .cart-badge {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.fly-dot {
    position: fixed;
    z-index: 3000;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(255, 215, 0, .5);
    pointer-events: none;
}

/* ==========================================================================
   DRAWER (orden)
   ========================================================================== */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0s linear .6s;
}

.drawer.is-open {
    visibility: visible;
    transition-delay: 0s;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .5s ease;
}

.drawer.is-open .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(460px, 100%);
    background: #141414;
    border-left: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .6s var(--ease);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
}

.drawer.is-open .drawer-panel {
    transform: none;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}

.drawer-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: repeating-linear-gradient(-45deg, var(--primary) 0 10px, #111 10px 20px);
}

.drawer-head h3 {
    font-size: 1.15rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.drawer-head h3 i {
    color: var(--primary);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.orden-list li {
    background: var(--surface-2);
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    animation: itemIn .5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 50ms);
}

.orden-list li.removing {
    animation: itemOut .4s var(--ease) forwards;
}

@keyframes itemIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: none; }
}

@keyframes itemOut {
    to { opacity: 0; transform: translateX(60px); height: 0; padding: 0 16px; margin: 0; border-width: 0; }
}

.orden-item-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .88rem;
}

.orden-item-detail {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: .82rem;
}

.orden-item-remove {
    color: #888;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.orden-item-remove:hover {
    color: var(--danger);
    background: rgba(255, 90, 90, .1);
}

.orden-item-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.orden-item-foot .stepper {
    transform: scale(.85);
    transform-origin: left center;
}

.orden-item-foot .stepper button {
    width: 34px;
    height: 34px;
}

.orden-item-foot .stepper input {
    width: 54px;
    font-size: .95rem;
}

.orden-item-kg {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
}

.orden-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.orden-empty i {
    font-size: 3rem;
    color: #333;
    margin-bottom: 14px;
    display: block;
}

.orden-empty p {
    margin-bottom: 18px;
}

.drawer-foot {
    border-top: 1px solid #2a2a2a;
    padding: 18px 24px 22px;
    background: #111;
}

.orden-totals {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 10px;
    margin-bottom: 14px;
}

.orden-totals div {
    display: flex;
    flex-direction: column;
}

.orden-totals span {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.orden-totals strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
}

.orden-totals .big strong {
    color: var(--primary);
    font-size: 1.25rem;
}

.orden-client {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.orden-client input {
    background: #222;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    font-size: .88rem;
    min-width: 0;
}

.orden-client input:focus {
    border-color: var(--primary);
}

.orden-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orden-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer.is-empty .drawer-foot .btn {
    opacity: .45;
    pointer-events: none;
}

/* ==========================================================================
   MODALES
   ========================================================================== */
.modal,
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    transition: visibility 0s linear .5s;
}

.modal.is-open,
.lightbox.is-open {
    visibility: visible;
    transition-delay: 0s;
}

.modal-backdrop,
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .45s ease;
}

.modal.is-open .modal-backdrop,
.lightbox.is-open .lightbox-backdrop {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 940px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-top: 4px solid var(--primary);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    opacity: 0;
    transform: translateY(40px) scale(.92);
    transition: opacity .45s ease, transform .6s var(--ease);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}

.modal.is-open .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal-close,
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    border: 1px solid #444;
    color: #fff;
    transition: transform .4s var(--ease), background .3s ease, color .3s ease;
}

.modal-close:hover,
.lightbox-close:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: rotate(90deg);
}

.pm-media {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #000;
}

.pm-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.4s var(--ease);
}

.modal.is-open .pm-media img {
    transform: scale(1);
}

.pm-body {
    padding: 36px 32px 32px;
}

.pm-body > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .6s var(--ease);
}

.modal.is-open .pm-body > * {
    opacity: 1;
    transform: none;
}

.modal.is-open .pm-body > *:nth-child(1) { transition-delay: .15s; }
.modal.is-open .pm-body > *:nth-child(2) { transition-delay: .2s; }
.modal.is-open .pm-body > *:nth-child(3) { transition-delay: .25s; }
.modal.is-open .pm-body > *:nth-child(4) { transition-delay: .3s; }
.modal.is-open .pm-body > *:nth-child(5) { transition-delay: .35s; }
.modal.is-open .pm-body > *:nth-child(6) { transition-delay: .4s; }
.modal.is-open .pm-body > *:nth-child(7) { transition-delay: .45s; }

.pm-body h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    line-height: 1.15;
}

.pm-body > p {
    color: #cfcfcf;
    margin-bottom: 18px;
}

.pm-body h4 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.pm-usos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin-bottom: 18px;
}

.pm-usos li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: .92rem;
    color: #ddd;
}

.pm-usos li i {
    color: var(--primary);
    font-size: .75rem;
}

.pm-note {
    font-size: .8rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 22px !important;
}

.pm-note i {
    color: var(--primary);
}

.pm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-video .modal-dialog {
    display: block;
    max-width: 1100px;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.modal-video video {
    width: 100%;
    max-height: calc(100vh - 80px);
    background: #000;
}

/* Lightbox */
.lightbox-figure {
    position: relative;
    max-width: min(1200px, 92vw);
    opacity: 0;
    transform: scale(.9);
    transition: opacity .45s ease, transform .6s var(--ease);
}

.lightbox.is-open .lightbox-figure {
    opacity: 1;
    transform: none;
}

.lightbox-figure img {
    max-height: 78vh;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}

.lightbox-figure img.swap {
    animation: swapIn .55s var(--ease);
}

@keyframes swapIn {
    from { opacity: 0; transform: translateX(var(--dir, 40px)) scale(.97); }
    to { opacity: 1; transform: none; }
}

.lightbox-figure figcaption {
    text-align: center;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: .9rem;
}

.lightbox-figure figcaption span {
    color: var(--primary);
    margin-right: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    border-radius: 50%;
    border: 1px solid #444;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 32px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-left: 4px solid var(--primary);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    font-size: .92rem;
    animation: toastIn .5s var(--ease);
    pointer-events: all;
}

.toast i {
    color: var(--primary);
    font-size: 1.1rem;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.error i {
    color: var(--danger);
}

.toast.out {
    animation: toastOut .4s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(30px) scale(.95); }
    to { opacity: 1; transform: none; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(20px) scale(.95); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .nav-menu {
        gap: 22px;
    }

    .nav-link {
        font-size: .92rem;
    }
}

@media (max-width: 992px) {
    :root {
        --header-h: 72px;
    }

    .about-grid,
    .contact-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 60px;
    }

    nav[aria-label="Principal"] {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    header.scrolled .logo img {
        height: 42px;
    }

    .hero {
        padding-bottom: 60px;
    }

    .hero-features {
        position: relative;
        margin-top: 50px;
        background: rgba(10, 10, 10, .6);
        border: 1px solid rgba(255, 215, 0, .15);
        border-left: none;
        border-right: none;
        width: 100%;
    }

    .hero-features .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-feature:nth-child(2) {
        border-right: none;
    }

    .hero-feature:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .scroll-indicator {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    .stat:nth-child(3)::before {
        display: none;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item.g-wide {
        grid-column: span 2;
    }

    .calc-body {
        grid-template-columns: 1fr;
    }

    .calc-form {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }

    .process-line {
        display: none;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-dialog {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .pm-media {
        min-height: 220px;
        max-height: 260px;
    }

    .map-container {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-eyebrow {
        font-size: .7rem;
        letter-spacing: 1px;
        padding: 7px 14px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8.6vw, 2.6rem);
    }

    .hero-rotator {
        font-size: .92em;
    }

    .hero-content p {
        font-size: 1.02rem;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .hero-feature {
        padding: 14px 8px;
        gap: 10px;
    }

    .hero-feature i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-feature strong {
        font-size: .72rem;
    }

    .hero-feature span {
        font-size: .72rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-badge-wrap {
        right: 8px;
        bottom: -22px;
    }

    .about-badge {
        padding: 12px 16px;
    }

    .about-frame {
        inset: 10px -10px -10px 10px;
    }

    .gallery {
        grid-auto-rows: 140px;
        gap: 10px;
    }

    .gallery-caption {
        font-size: .7rem;
        left: 10px;
        bottom: 10px;
    }

    .catalog-toolbar {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .catalog-toolbar > * {
        min-width: 0;
    }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        white-space: nowrap;
    }

    .search-box {
        min-width: 0;
    }

    .calc-form,
    .calc-result {
        padding: 22px 18px;
    }

    .calc-fields {
        grid-template-columns: 1fr;
    }

    .calc-tab {
        min-width: 88px;
        padding: 14px 8px 12px;
        font-size: .7rem;
    }

    .calc-tab svg {
        width: 28px;
        height: 28px;
    }

    .calc-orderbar {
        padding: 16px 18px;
    }

    .calc-orderbar-actions,
    .calc-orderbar-actions .btn {
        flex: 1;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quote-form {
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .whatsapp-tip {
        display: none;
    }

    .back-to-top {
        display: none;
    }

    .calc-actions .btn-primary {
        padding: 15px 12px;
        font-size: .88rem;
        letter-spacing: .5px;
    }

    .orden-fab {
        left: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-dialog {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .modal-video {
        align-items: center;
        padding: 12px;
    }

    .modal-video .modal-dialog {
        border-radius: 10px;
        transform: scale(.9);
    }

    .pm-body {
        padding: 26px 20px 28px;
    }

    .pm-usos {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        top: auto;
        bottom: 40px;
    }

    .lightbox-nav.prev { left: calc(50% - 60px); }
    .lightbox-nav.next { right: calc(50% - 60px); }

    .orden-totals {
        grid-template-columns: 1fr 1fr;
    }

    .orden-totals .big {
        grid-column: 1 / -1;
    }

    .orden-client {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }

    .hero-sparks {
        display: none;
    }
}
