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

:root {
    --primary-orange: #FF8C00;
    --dark-bg: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

/* Preloader — cortina de vidrio que se abre revelando la página */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
}

.preloader-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #050505;
    z-index: 3001;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-panel-left {
    left: 0;
    border-right: 1px solid rgba(255, 140, 0, 0.35);
}

.preloader-panel-right {
    right: 0;
    border-left: 1px solid rgba(255, 140, 0, 0.35);
}

/* Textura sutil y estática, para que los paneles no queden negros lisos */
.preloader-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.05) 0%, rgba(255, 140, 0, 0) 60%),
        linear-gradient(160deg, #0c0c0c 0%, #050505 55%, #000 100%);
}

/* Resplandor suave detrás del logo */
.preloader-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    z-index: 3001;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.28) 0%, rgba(255, 140, 0, 0) 70%);
    opacity: 0;
    animation: preloaderGlowFade 0.7s ease forwards 0.1s, preloaderGlowPulse 2.6s ease-in-out infinite 0.1s;
}

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

@keyframes preloaderGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.15); }
}

#preloader.preloader-hide .preloader-panel-left  { transform: translateX(-100%); }
#preloader.preloader-hide .preloader-panel-right { transform: translateX(100%); }

#preloader-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90px;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3002;
    opacity: 0;
    animation: preloaderLogoFade 0.5s ease forwards 0.25s;
    transition: opacity 0.35s ease;
}

#preloader.preloader-hide #preloader-logo {
    opacity: 0;
}

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

body.loading {
    overflow: hidden;
}

/* Header General */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    background-color: #000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* 1. SECCIONES (Navegación) - Sin negrita como la foto 2 */
nav {
    display: flex;
    gap: 38px;
    flex-grow: 1;
    justify-content: center;
}

nav a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    transition: color 0.45s ease, border-color 0.45s ease;
}

nav a.active, nav a:hover {
    color: #FF8C00 !important;
    border-bottom-color: #FF8C00;
}

/* Entrada escalonada del header al cargar la página */
@keyframes headerReveal {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.logo,
nav a,
header .whatsapp-btn,
.menu-toggle {
    opacity: 0;
    animation: headerReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-play-state: paused;
}

body.loaded .logo,
body.loaded nav a,
body.loaded header .whatsapp-btn,
body.loaded .menu-toggle {
    animation-play-state: running;
}

.logo                 { animation-duration: 1.4s; animation-delay: 0.10s; }
nav a:nth-child(1)     { animation-delay: 0.35s; }
nav a:nth-child(2)     { animation-delay: 0.48s; }
nav a:nth-child(3)     { animation-delay: 0.60s; }
nav a:nth-child(4)     { animation-delay: 0.72s; }
nav a:nth-child(5)     { animation-delay: 0.85s; }
nav a:nth-child(6)     { animation-delay: 0.97s; }
nav a:nth-child(7)     { animation-delay: 1.10s; }
header .whatsapp-btn,
.menu-toggle           { animation-delay: 1.25s; }

/* 2. LOGO Y DIVISOR */
.logo {
    display: flex;
    align-items: center;
}

.vc-img {
    height: 80px; /* Tu tamaño manual */
    width: auto;
    display: block;
}

.logo-divider {
    width: 1px;
    height: 60px; /* Aumentada para escoltar al logo de 80px */
    background-color: #FFFFFF; /* Blanco para que se note */
    margin: 0 25px;
}

/* 3. TEXTOS DEL LOGO - Ajustados en tamaño y color */

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    font-family: 'Montserrat', sans-serif;
}

.text-top { 
    color: #FFFFFF; 
    font-size: 16.5px; 
    font-weight: 700; 
    line-height: 1;
    letter-spacing: 1px;
    margin: 0 0 1px 0;
    padding: 0;
}

.text-main { 
    color: #FF8C00; 
    font-size: 32px; 
    font-weight: 800; 
    line-height: 0.9;
    margin: 0; 
    padding: 0;
    transform: translateX(-2px); /* Fuerza el movimiento a la izquierda ignorando bloqueos */
}

.text-sub { 
    color: #FFFFFF; 
    font-size: 9px; 
    font-weight: 400;
    letter-spacing: 1.6px; 
    text-transform: uppercase;
    white-space: nowrap;
    display: block;
    width: 100%;
    margin: 2px 0 0 0;
    padding: 0;
    text-align: left; 
}

/* 4. BOTÓN WHATSAPP - Fino y con hover */
header .whatsapp-btn {
    background: transparent !important;
    border: 1px solid #FF8C00 !important; /* Borde fino */
    color: #FFFFFF !important;
    padding: 8px 20px;
    font-size: 13px !important;
    font-weight: 500 !important; /* No muy negrita */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

header .whatsapp-btn:hover {
    background-color: #FF8C00 !important;
    color: #000 !important;
}

.whatsapp-icon {
    width: 16px;
    height: 16px;
}

/* 5. HAMBURGUESA (solo mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1600;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Sections */
section {
    min-height: 100vh;
    padding: 120px 60px 60px;
    position: relative;
}

/* Hero Section - Degradado diagonal y luz real */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/* Foto de fondo — capa propia para poder desenfocarla al aparecer sin afectar el texto */
.hero-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('img/portada-bg.webp') center right / cover no-repeat;
    opacity: 0;
    filter: blur(22px);
    transform: scale(1.06);
    animation: heroPhotoReveal 1.3s ease-out forwards;
    animation-play-state: paused;
}

body.loaded .hero-bg-photo {
    animation-play-state: running;
}

@keyframes heroPhotoReveal {
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Degradado — capa propia por encima de la foto, para que el texto siga siendo legible */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.9) 35%,
        rgba(0, 0, 0, 0) 55%
    );
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero h2 {
    font-size: 85px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
    color: #FFFFFF;
    text-transform: uppercase;
}


/* ESTA ES LA LÍNEA NARANJA QUE FALTABA */
.hero h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #FF8C00;
    margin-top: 25px;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #FFFFFF;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.4;
}

.cta-btn {
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    padding: 18px 40px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.cta-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

/* --- SECCIÓN PROCESOS: REPLICA EXACTA MOCKUP --- */
.procesos-section {
    position: relative;
    width: 100%;
    padding: 100px 0 160px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    background: 
        linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0) 60%),
        linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,0) 40%),
        url('../img/fondo-procesos-general.webp') no-repeat center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.procesos-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0) 100%),
        linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0) 50%);
    z-index: 0;
}

/* El wrapper ahora NO tiene max-width para que la grilla sea total */
.procesos-main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* NUEVA CLASE: Protege el texto con márgenes */
.procesos-text-container {
    width: 100%;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

/* Cabecera */
.procesos-header {
    text-align: left;
    margin-bottom: 60px;
}
.procesos-tagline {
    font-size: 13px;
    letter-spacing: 5px;
    color: #bbb;
    margin-bottom: 5px;
}
.procesos-tagline .pipe { color: #FF8C00; margin: 0 6px; font-weight: bold; }
.procesos-title {
    font-size: clamp(40px, 8vw, 85px); /* Ajustable para mobile */
    font-weight: 900;
    line-height: 0.8;
    margin: 10px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -3px;
}
.procesos-subtitle { font-size: 15px; color: #bbb; max-width: 400px; margin-bottom: 25px; line-height: 1.4; }
.procesos-subtitle .orange { color: #FF8C00; font-weight: 600; }
.orange-horizontal-line-small {
    width: 40px; height: 3px;
    background-color: #FF8C00;
    margin-top: 20px;
}

/* Grilla Hexagonal */
.procesos-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 1650px;
    margin: 140px auto 0;
}

.proceso-card {
    position: relative;
    background-color: #222;
    padding: 1.5px;
    clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    aspect-ratio: 3/4;
    display: flex;
}

.proceso-card:hover, .proceso-card.active {
    background-color: #FF8C00;
    transform: translateY(-8px);
}

.proceso-inner {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 15px;
    position: relative;
}

.proceso-inner-zoomout {
    background-size: 165% auto !important;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
}

.proceso-inner-zoomout-xl {
    background-size: 120% auto !important;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
}

.proceso-inner-laminado {
    background-size: auto 110% !important;
    background-position: center 100% !important;
    background-repeat: no-repeat;
}

.proceso-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 35%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 88%);
    z-index: 1;
}

.proceso-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.proceso-number { color: #FF8C00; font-size: 18px; font-weight: 800; display: block; margin-bottom: 2px; }
.proceso-name { color: #fff; font-size: clamp(12px, 1.2vw, 16px); font-weight: 700; text-transform: uppercase; margin: 0 0 6px; }
.proceso-desc { color: #aaa; font-size: clamp(10px, 0.9vw, 13px); font-weight: 400; line-height: 1.4; margin: 0; }

.proceso-expand {
    position: relative;
    z-index: 2;
    width: 28px; height: 28px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; margin: 15px auto 0;
    transition: 0.3s;
    font-size: 12px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PANEL DE DETALLE === */
.detalle-container {
    display: none;
    width: 100%;
    background: #0a0a0a;
    border-top: 2px solid #FF8C00;
    position: relative;
    min-height: calc(100vh - 70px); /* ocupa toda la pantalla desde el header */
    box-sizing: border-box;
}
.detalle-container.activo {
    display: flex;
    flex-direction: column;
    animation: slideUp 0.35s ease-out;
}

.detalle-inner-wrap {
    max-width: 1650px;
    margin: 0 auto;
    padding: 50px 3% 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* 3 columnas */
.detalle-cols {
    display: grid;
    grid-template-columns: 0.7fr 2.5fr 0.55fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
    flex: 1;
}

/* Col 1 — Info */
.det-num  { color: #FF8C00; font-size: 34px; font-weight: 900; display: block; line-height: 1; margin-bottom: 6px; }
.det-title{ font-size: clamp(36px,4vw,58px); font-weight: 900; text-transform: uppercase; letter-spacing: -2px; margin: 0 0 18px; line-height: 1; }
.det-title-sm { font-size: clamp(24px,2.6vw,40px); }
.det-text { color: #aaa; font-size: 14px; line-height: 1.8; margin-bottom: 28px; }

.det-features { display: flex; gap: 20px; }
.det-feat { flex: 1; text-align: center; }
.det-feat i { color: #FF8C00; font-size: 26px; display: block; margin-bottom: 10px; }
.det-feat strong { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 3px; }
.det-feat span { color: #aaa; font-size: 11px; line-height: 1.4; display: block; }

/* Col 2 — Media: video vertical + fotos al lado */
.det-media-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 10px;
    align-items: stretch;
}
.det-video-box {
    background: #151515; border: 1px solid #1e1e1e;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    aspect-ratio: 9/16;
    width: 100%;
    max-height: calc(100vh - 300px);
    overflow: hidden;
}
.det-media-layout.tall-video {
    align-items: start;
}
.det-media-layout.tall-video .det-video-box {
    width: 100%;
}
/* La foto NO cambia: mismo ancho (su fr de siempre) y misma altura que en
   cualquier otro proceso, totalmente independiente de lo que haga el video. */
.det-media-layout.tall-video .det-side-imgs {
    align-self: start;
    height: calc(100vh - 300px);
}

/* Fondo detrás del video/foto: cuando "contain" deja franjas vacías a los
   costados, se ve la propia imagen (poster del video / foto activa)
   difuminada — no negro liso. Se mezcla (soft-light) sobre el degradado
   naranja de marca en vez de mostrarse sola: así, aunque la foto sea una
   escena muy oscura (galpón, cintas negras), el fondo nunca cae a negro
   plano, siempre queda con calidez de marca. --bg-photo lo actualiza JS
   cada vez que cambia el video/foto activa (irAFotoDetalle, poblarDetalle,
   seleccionarVideoVariant). scale(1.15) empuja el borde difuminado (que el
   blur deja transparente) fuera del área visible, ya que el contenedor
   padre tiene overflow:hidden. */
.det-video-backdrop,
.det-side-backdrop {
    position: absolute; inset: 0; z-index: 0;
    /* screen (no soft-light): el resultado nunca puede quedar más oscuro que
       el degradado de marca solo, sea cual sea la foto — con soft-light una
       foto oscura sobre un degradado oscuro seguía dando casi negro. */
    background-image: var(--bg-photo, none), radial-gradient(circle at center, #2e1608 0%, #151515 60%, #0d0d0d 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-blend-mode: screen, normal;
    filter: blur(30px) brightness(0.85) saturate(1.4);
    transform: scale(1.15);
}
.det-video-box video {
    /* Sin 100%/100% + object-fit:contain: Chrome/Safari pintan las franjas
       vacías en negro sólido *dentro del propio <video>*, tapando cualquier
       fondo — no es cuestión de z-index, es cómo compositan el frame
       decodificado. La solución es que el <video> mida solo su tamaño real
       (max-width/max-height + auto), así no le queda franja vacía propia y
       el fondo difuso de atrás (.det-video-backdrop) se ve en el resto de
       la caja, que sí es un div normal.
       Absolute + translate (no relative + flex): el play-btn de al lado es
       "position:relative", es decir sigue siendo un ítem del flex de
       .det-video-box — si el video también fuera relative, los dos se
       centrarían juntos como grupo y el video quedaría corrido hacia un
       costado en vez de centrado él solo. Con absolute queda fuera del
       flex y se centra por su cuenta con top/left/transform. */
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    background: transparent;
    pointer-events: none;
}
.det-video-box .play-btn { position: relative; z-index: 2; }
.det-video-box .play-btn {
    width: 58px; height: 58px;
    border: 2px solid #FF8C00; border-radius: 50%;
    background: rgba(255,140,0,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #FF8C00; font-size: 16px; cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}
.det-video-box.playing .play-btn { opacity: 0; }
.det-video-box.playing:hover .play-btn { opacity: 1; }
.det-video-box .play-btn:hover { background: rgba(255,140,0,0.35); }
.det-video-tabs {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: flex; gap: 6px;
}
.det-video-tabs:empty { display: none; }
.det-video-tab {
    background: rgba(0,0,0,0.55); border: 1px solid #333; color: #ccc;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 6px 12px; border-radius: 20px; cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.det-video-tab:hover { border-color: #FF8C00; color: #fff; }
.det-video-tab.active {
    background: #FF8C00; border-color: #FF8C00; color: #000;
}
.det-volume {
    position: absolute; bottom: 10px; right: 12px; z-index: 2;
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.55); border: 1px solid #2a2a2a; border-radius: 20px;
    padding: 5px 10px;
}
.det-volume i {
    color: #FF8C00; font-size: 12px; cursor: pointer; pointer-events: all;
}
.det-vol-slider {
    -webkit-appearance: none; appearance: none;
    width: 55px; height: 3px; border-radius: 2px;
    background: #444; outline: none; cursor: pointer; pointer-events: all;
}
.det-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 11px; height: 11px; border-radius: 50%;
    background: #FF8C00; cursor: pointer;
}
.det-vol-slider::-moz-range-thumb {
    width: 11px; height: 11px; border-radius: 50%;
    background: #FF8C00; border: none; cursor: pointer;
}
.det-side-imgs {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border: 1px solid #1e1e1e;
    overflow: hidden;
}
.det-side-img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.det-side-slides {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.det-side-img.active {
    opacity: 1;
    pointer-events: auto;
}
.det-side-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; transition: background 0.3s;
}
.det-side-arrow:hover { background: rgba(255,140,0,0.55); }
.det-side-arrow-prev { left: 10px; }
.det-side-arrow-next { right: 10px; }
.det-side-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.det-side-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.3s;
}
.det-side-dot.active { background: #FF8C00; }

/* Col 3 — Sidebar */
.det-col-side {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.det-side-title {
    display: block; color: #FF8C00;
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 26px;
}
.det-side-list { list-style: none; padding: 0; margin: 0 0 28px; }
.det-side-list li {
    font-size: 16px; color: #bbb; margin-bottom: 24px;
    display: flex; align-items: flex-start; gap: 13px; line-height: 1.5;
}
.det-side-list li i { color: #FF8C00; font-size: 11px; margin-top: 5px; flex-shrink: 0; }

.btn-cotizar-det {
    display: block; text-align: center;
    background: #FF8C00; color: #000;
    text-decoration: none; padding: 19px 22px;
    font-weight: 800; font-size: 13px; letter-spacing: 1px;
    text-transform: uppercase; transition: background 0.3s;
}
.btn-cotizar-det:hover { background: #e07b00; }

/* Barra de navegación inferior */
.det-nav-strip {
    display: flex; align-items: center; gap: 25px;
    padding: 28px 0 20px; border-top: 1px solid #1e1e1e;
    /* Fija al fondo de la pantalla en vez de quedar al final del contenido:
       si un proceso tiene más contenido arriba (como Corte, con las tabs
       extra de Monolítico/Laminado), esta barra quedaba empujada fuera de
       la vista y había que scrollear para encontrarla. Así siempre está a
       mano, sea cual sea el proceso. */
    position: sticky;
    bottom: 0;
    background: #0a0a0a;
    z-index: 5;
}
.det-nav-num { color: #FF8C00; font-size: 38px; font-weight: 900; line-height: 1; min-width: 55px; }
.det-progress-area { flex: 1; }
.det-prog-track {
    height: 2px; background: #2a2a2a; position: relative; margin-bottom: 6px;
}
.det-prog-handle {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px; background: #FF8C00; border-radius: 50%;
    transition: left 0.3s ease;
}
.det-prog-labels { display: flex; justify-content: space-between; }
.det-prog-label { color: #444; font-size: 10px; font-weight: 700; }

.det-nav-arrows { display: flex; gap: 8px; }
.det-arrow-btn {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; transition: 0.25s;
}
.det-arrow-prev { background: #1a1a1a; color: #555; }
.det-arrow-prev:hover { background: #2a2a2a; color: #fff; }
.det-arrow-next { background: #FF8C00; color: #000; }
.det-arrow-next:hover { background: #e07b00; }

.btn-close-detalle {
    position: absolute; top: 18px; right: 5%;
    background: none; border: none; color: #444;
    font-size: 36px; cursor: pointer; transition: color 0.3s; z-index: 5;
}
.btn-close-detalle:hover { color: #FF8C00; }

/* ================================================================
   PORTFOLIO SECTION
   ================================================================ */
.portfolio-section {
    background: linear-gradient(-45deg, #0a0a0a, #3d1500, #0d0500, #4a1c00, #0a0a0a, #2e1000);
    background-size: 400% 400%;
    animation: matAurora 14s ease infinite;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    gap: 40px;
    padding: 0 60px;
    margin-bottom: 20px;
}

.portfolio-header-left {
    flex-shrink: 0;
}

.port-label {
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.port-title {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.port-line {
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin-bottom: 0;
}

.port-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.65;
    max-width: 360px;
    padding-bottom: 3px;
}

.port-carousel-wrap {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.port-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
}

.port-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.port-btn {
    pointer-events: all;
    touch-action: none;
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.88);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    opacity: 0.7;
    backdrop-filter: blur(4px);
}

.port-btn:hover {
    background: var(--primary-orange);
    transform: scale(1.12);
    opacity: 1;
}

.port-photo {
    width: 340px;
    height: 560px;
    flex-shrink: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.port-photo:hover {
    transform: scale(1.03);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 140, 0, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.port-photo:hover .port-overlay {
    opacity: 1;
}
/* En celular no hay "sacar el mouse de encima" — el toque queda controlado
   a mano por JS con esta clase, en vez de depender del :hover que se queda
   pegado tras tocar. */
.port-photo.port-photo-tapped .port-overlay {
    opacity: 1;
}

.port-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
}

.port-overlay::before {
    content: '→';
    color: #fff;
    font-size: 22px;
    font-weight: 300;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 48px,
        rgba(255, 140, 0, 0.045) 48px,
        rgba(255, 140, 0, 0.045) 49px
    );
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.faq-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    position: relative;
    z-index: 1;
    gap: 80px;
    align-items: start;
}

.faq-sidebar {
    position: sticky;
    top: 90px;
}

.faq-label {
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.faq-title {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 14px;
    animation: faqGlitch 5s ease-in-out infinite;
    position: relative;
}

@keyframes faqGlitch {
    /* Quieto la mayor parte del tiempo */
    0%, 65%, 100% {
        transform: none;
        text-shadow: none;
        opacity: 1;
    }
    /* Glitch se extiende del 65% al 80% = 1.5s de efecto visible */
    67% {
        transform: skewX(-5deg) translateX(-7px);
        text-shadow: 6px 0 rgba(255,140,0,0.9), -6px 0 rgba(255,255,255,0.25);
        opacity: 0.85;
    }
    69% {
        transform: skewX(4deg) translateX(6px);
        text-shadow: -6px 0 rgba(255,140,0,1), 6px 0 rgba(255,255,255,0.2);
        opacity: 1;
    }
    71% {
        transform: skewX(-6deg) translateX(-8px);
        text-shadow: 7px 0 rgba(255,140,0,0.8);
        opacity: 0.75;
    }
    73% {
        transform: skewX(3deg) translateX(5px);
        text-shadow: -5px 0 rgba(255,140,0,0.9), 5px 0 rgba(255,255,255,0.15);
        opacity: 0.95;
    }
    75% {
        transform: skewX(-2deg) translateX(-4px);
        text-shadow: 4px 0 rgba(255,140,0,0.6);
        opacity: 0.9;
    }
    77% {
        transform: skewX(5deg) translateX(6px);
        text-shadow: -6px 0 rgba(255,140,0,0.7), 6px 0 rgba(255,255,255,0.1);
        opacity: 0.85;
    }
    79% {
        transform: skewX(-1deg) translateX(-2px);
        text-shadow: 2px 0 rgba(255,140,0,0.4);
        opacity: 0.95;
    }
    80% {
        transform: none;
        text-shadow: none;
        opacity: 1;
    }
}

.faq-line {
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin-bottom: 18px;
}

.faq-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #222;
}

.faq-item {
    border-bottom: 1px solid #222;
}

.faq-item:nth-child(odd) {
    border-right: 1px solid #222;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 22px 20px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--primary-orange);
}

.faq-icon {
    color: var(--primary-orange);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.open .faq-q {
    color: var(--primary-orange);
}

.faq-ans {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.open .faq-ans {
    /* Con margen de sobra sobre el texto más largo actual, para que textos
       futuros más extensos (o en celular, donde envuelve a más líneas) no
       corran riesgo de quedar cortados por este tope fijo. */
    max-height: 350px;
    padding: 0 20px 20px;
}

.faq-ans p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
}

.faq-link {
    color: var(--primary-orange);
    text-decoration: none;
}

.faq-link:hover {
    text-decoration: underline;
}

/* Ajustes de encuadre por material */
.mat-card[data-material="float-tonalizado"] .mat-card-img    { background-position: 100% 72%; background-size: 112% auto; }
.mat-card[data-material="espejo-incoloro"] .mat-card-img     { background-position: 100% 63%; background-size: 112% auto; }
.mat-card[data-material="esmerilado"] .mat-card-img          { background-position: 45% 60%; background-size: 140% auto; }
.mat-card[data-material="opacid"] .mat-card-img              { background-position: 100% 60%; background-size: 108% auto; }
.mat-card[data-material="laminado-incoloro"] .mat-card-img   { background-position: 53% 69%; background-size: 200% auto; }
.mat-card[data-material="coverglass"] .mat-card-img          { background-position: 72% 56%; background-size: 130% auto; }
.mat-card[data-material="espejado-stopsol"] .mat-card-img    { background-position: 63% 50%; background-size: 125% auto; }
.mat-card[data-material="espejo-tonalizado"] .mat-card-img   { background-position: 46% 55%; background-size: 111% auto; }
.mat-card[data-material="texturado"] .mat-card-img           { background-position: 74% 54%; background-size: 117% auto; }
.mat-card[data-material="laminado-tonalizado"] .mat-card-img { background-position: 100% 53%; background-size: 110% auto; }

/* =============================================
   SECCIÓN NOSOTROS — REPLICA EXACTA DEL MOCKUP
   ============================================= */

.nosotros-section {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 0 !important;
    min-height: unset !important;
}

/* ── Blobs de luz flotantes ── */
.blobs-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Igual al Focus pero en naranja */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.blob-1 {
    width: 550px; height: 550px;
    background: #FF8C00;
    top: -450px; left: -400px;
    animation: blobDrift1 12s ease-in-out infinite alternate;
}

.blob-2 {
    width: 450px; height: 450px;
    background: #cc4400;
    bottom: -400px; right: -350px;
    animation: blobDrift2 15s ease-in-out infinite alternate;
}

.blob-3 {
    width: 350px; height: 350px;
    background: #ff5500;
    top: 20%; left: -350px;
    animation: blobDrift3 10s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(600px, 500px) scale(1.2); }
}

@keyframes blobDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-550px, -450px) scale(1.2); }
}

@keyframes blobDrift3 {
    from { transform: translate(0, 0) scale(0.9); }
    to   { transform: translate(800px, 80px) scale(1.1); }
}

/* ---- BLOQUE 1: Hero con foto de fondo y degradado ---- */
.nosotros-hero-full {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0a0a0a;
    overflow: hidden;
}

.nosotros-hero-photo,
.nosotros-hero-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
    mask-image: linear-gradient(to right, transparent 0%, black 18%);
}

.nosotros-hero-photo {
    background: url('img/nosotros-banner-right.webp') no-repeat center / cover;
}

.nosotros-hero-video {
    object-fit: cover;
    object-position: center;
}

/* Degradado negro sólido a izquierda, se desvanece a la derecha */
.nosotros-hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,10,1)   0%,
        rgba(10,10,10,1)  42%,
        rgba(10,10,10,0.7) 58%,
        rgba(10,10,10,0.15) 75%,
        rgba(10,10,10,0)  100%
    );
    z-index: 1;
}

/* Contenido del hero queda sobre el degradado */
.nosotros-hero-full .nosotros-main-wrapper {
    position: relative;
    z-index: 2;
    padding: 32px 4% 28px;
    max-width: 55%;
}

.nosotros-main-wrapper {
    width: 100%;
    padding: 0 4%;
}

/* Tagline */
.nosotros-tagline {
    font-size: 11px;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 500;
}
.nosotros-tagline .pipe {
    color: #FF8C00;
    margin: 0 10px;
    font-weight: 700;
}

/* Título principal SOBRE / NOSOTROS */
.nosotros-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 0 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.nosotros-title .orange { color: #FF8C00; }

/* Línea naranja debajo del título */
.nosotros-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: #FF8C00;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Subtítulo descriptivo */
.nosotros-subtitle {
    font-size: 17px;
    color: #cccccc;
    max-width: 480px;
    margin-bottom: 34px;
    line-height: 1.6;
    font-weight: 300;
}

/* ---- Stats ---- */
.stats-row {
    display: flex;
    gap: 0;
    align-items: center;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 38px 0 32px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.stat-block:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-block i {
    color: #FF8C00;
    font-size: 40px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.3px;
}

/* ---- BLOQUE 2: Tradición + Foto operario + Texto historia ---- */
.nosotros-mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin: 0;
    min-height: 310px;
    background-color: #0d0d0d;
}

/* Columna izquierda */
.tradicion-box {
    background-color: #111111;
    display: flex;
    align-items: center;
    padding: 40px 32px;
    width: 100%;
}

/* Foto de operario: columna central */
.nosotros-foto-operario {
    width: 100%;
    min-height: 320px;
    background: url('img/fondo-deposito-general.webp') no-repeat center / cover;
}

/* Columna derecha: texto histórico */
.historia-texto-largo {
    background-color: #0a0a0a;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contenido "Tradición" */
.tradicion-content { width: 100%; }

.tradicion-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    line-height: 1.25;
    color: #ffffff;
}

.orange-bold { color: #FF8C00; }
.orange { color: #FF8C00; }

.orange-line-short {
    width: 40px;
    height: 3px;
    background-color: #FF8C00;
    margin-bottom: 18px;
}

.tradicion-content p {
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.7;
    font-weight: 300;
}

/* Texto historia */
.historia-texto-largo p {
    font-size: 13px;
    color: #bbbbbb;
    line-height: 1.65;
    margin-bottom: 16px;
    font-weight: 300;
}
.historia-texto-largo p:last-child { margin-bottom: 0; }
.historia-texto-largo .highlight {
    color: #FF8C00;
    font-weight: 600;
}

/* ---- BLOQUE 3: Valores en 4 columnas ---- */
.nosotros-valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background-color: #0d0d0d;
    border-top: 1px solid #1e1e1e;
}

.valor-card-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-right: 1px solid #1e1e1e;
    transition: background 0.3s ease;
}
.valor-card-item:last-child { border-right: none; }
.valor-card-item:hover { background-color: #141414; }

.valor-card-item i {
    color: #FF8C00;
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.valor-text h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.valor-text p {
    font-size: 12.5px;
    color: #999999;
    line-height: 1.45;
    margin: 0;
    font-weight: 300;
}


/* ================================================================
   CONTACTO SECTION
   ================================================================ */
.contacto-section {
    background-color: #0a0a0a;
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 220px 1fr 200px 260px;
    position: relative;
    z-index: 1;
    gap: 48px;
    align-items: start;
}

.contacto-sidebar {
    position: sticky;
    top: 90px;
}

.cont-label {
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.cont-title {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 14px;
}

.cont-line {
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin-bottom: 18px;
}

.cont-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-field {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    color: var(--text-white);
    padding: 16px 18px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-field:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-field.mensaje {
    resize: vertical;
    min-height: 120px;
}

select.form-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF8C00' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

select.form-field option {
    background-color: #1a1a1a;
    color: var(--text-white);
}

.submit-btn {
    background-color: var(--primary-orange);
    color: #000;
    padding: 17px 40px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, opacity 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.45);
    opacity: 0.92;
}

.form-extra-hidden {
    display: none;
}

.presupuesto-guia-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.presupuesto-guia-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-orange);
}

.presupuesto-guia-hint {
    font-size: 12px;
    color: #666;
}

.presupuesto-guia-hint-orange {
    color: var(--primary-orange);
}

.submit-wa-icon {
    font-size: 17px;
    vertical-align: middle;
    margin-right: 6px;
}

.aviso-mayorista {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.25);
    padding: 16px;
    border-radius: 2px;
}

.aviso-icon {
    color: var(--primary-orange);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.aviso-mayorista p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.65;
    margin: 0;
}

.aviso-mayorista strong {
    color: var(--primary-orange);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.info-title {
    color: var(--primary-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon-fa {
    color: var(--primary-orange);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

.contacto-mapa {
    height: 260px;
    overflow: hidden;
    border: 1px solid #222;
    transition: border-color 0.3s, box-shadow 0.3s;
}

@keyframes mapa-pulse-anim {
    0%   { border-color: #222;     box-shadow: none; }
    15%  { border-color: #FF8C00;  box-shadow: 0 0 0 4px rgba(255,140,0,0.35); }
    30%  { border-color: #222;     box-shadow: none; }
    45%  { border-color: #FF8C00;  box-shadow: 0 0 0 4px rgba(255,140,0,0.35); }
    60%  { border-color: #222;     box-shadow: none; }
    75%  { border-color: #FF8C00;  box-shadow: 0 0 0 4px rgba(255,140,0,0.35); }
    90%  { border-color: #222;     box-shadow: none; }
    100% { border-color: #222;     box-shadow: none; }
}

.contacto-mapa.mapa-pulse {
    animation: mapa-pulse-anim 2.4s ease forwards;
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(30%) invert(90%) hue-rotate(180deg);
    opacity: 0.85;
}

/* ================================================================
   SECCIÓN MATERIALES — Estilo mockup 03
   ================================================================ */

.materiales-section {
    background: linear-gradient(-45deg, #0a0a0a, #3d1500, #0d0500, #4a1c00, #0a0a0a, #2e1000);
    background-size: 400% 400%;
    animation: matAurora 14s ease infinite;
    padding: 0;
    min-height: unset !important;
    position: relative;
    overflow: hidden;
}

@keyframes matAurora {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Cabecera hero --- */
.mat-hero {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 28px 60px 24px 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

@keyframes matHeroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mat-hero-left,
.mat-hero-body {
    position: relative;
    z-index: 2;
}

.mat-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    padding-top: 4px;
}

.mat-section-num {
    color: #FF8C00;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
}

.mat-section-bar {
    width: 2px;
    height: 36px;
    background-color: #FF8C00;
    margin-top: 4px;
}

.mat-title {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.mat-subtitle {
    font-size: 14px;
    color: #cccccc;
    font-weight: 300;
    max-width: 380px;
    line-height: 1.5;
}

.mat-highlight {
    color: #FF8C00;
    font-weight: 600;
}

/* --- Grilla 6 columnas × 2 filas --- */
.mat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* --- Tarjeta individual --- */
.mat-card {
    background-color: #111;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #1a1a1a;
    position: relative;
    touch-action: manipulation;
}

.mat-card:hover {
    z-index: 2;
    border-color: #FF8C00;
    box-shadow: 0 0 0 1px #FF8C00;
}

.mat-card-img {
    width: 100%;
    aspect-ratio: 3/2;
    background-color: #1c1c1c;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
    transition: transform 0.4s ease;
    overflow: hidden;
    position: relative;
}

.mat-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mat-card:hover .mat-card-img {
    transform: scale(1.05);
}

.mat-card-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.mat-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 7px;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.mat-card:hover .mat-card-title {
    color: #FF8C00;
}

.mat-card-desc {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
    line-height: 1.5;
    flex: 1;
}

.mat-card-arrow {
    display: inline-block;
    margin-top: 8px;
    color: #FF8C00;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.mat-card:hover .mat-card-arrow {
    transform: translateX(6px);
}

.mat-card-info::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #FF8C00;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mat-card:hover .mat-card-info::after {
    width: 100%;
}

/* ================================================================
   MODAL DE DETALLE / SUB-MATERIALES
   ================================================================ */

.mat-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.mat-modal.open {
    opacity: 1;
    pointer-events: all;
}

.mat-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    cursor: pointer;
}

.mat-modal-panel {
    position: relative;
    z-index: 1;
    background: #111111;
    border: 1px solid #222;
    border-top: 3px solid #FF8C00;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 50px 50px 60px;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border-radius: 2px;
    will-change: transform;
}

.mat-modal.open .mat-modal-panel {
    transform: translateY(0);
}

.mat-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10010;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-size: 16px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mat-modal-close:hover {
    background: #FF8C00;
    border-color: #FF8C00;
    color: #000;
}

/* Barra de navegación entre materiales */
.mat-modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #222;
}

.mat-nav-arrow {
    background: none;
    border: 1px solid #333;
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.mat-nav-arrow:hover {
    background: #FF8C00;
    border-color: #FF8C00;
    color: #000;
}

.mat-nav-counter {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* Modal — layout dos columnas: texto | fotos */
.mat-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.mat-modal-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    color: #FF8C00;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.mat-modal-desc {
    color: #bbb;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 300;
}

.mat-modal-desc p {
    margin-bottom: 14px;
}

.mat-modal-desc p:last-child { margin-bottom: 0; }

.mat-modal-desc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mat-modal-desc ul li {
    padding-left: 16px;
    position: relative;
    font-size: 13px;
    color: #bbb;
    line-height: 1.7;
    font-weight: 300;
}

.mat-modal-desc ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 2px;
    background: #FF8C00;
}


.mat-modal-desc strong {
    color: #fff;
    font-weight: 600;
}

.mat-modal-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 28px;
    background: #FF8C00;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mat-modal-cta:hover { background: #e07b00; }

/* Columna de fotos */
.mat-modal-photos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mat-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 5/6;
    background: #1c1c1c;
    overflow: hidden;
}
.mat-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.mat-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.mat-carousel-slide.active {
    opacity: 1;
}
.mat-modal.open .mat-carousel-slide.active {
    pointer-events: auto;
}
.mat-carousel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mat-carousel-slide-label {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    max-width: 97%;
    width: max-content;
    text-align: center;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
}
.mat-carousel:hover .mat-carousel-slide-label {
    opacity: 1;
}
.mat-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; transition: background 0.3s;
}
.mat-carousel-arrow:hover { background: rgba(255,140,0,0.55); }
.mat-carousel-arrow-prev { left: 12px; }
.mat-carousel-arrow-next { right: 12px; }
.mat-carousel-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.mat-carousel-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.3s;
}
.mat-carousel-dot.active { background: #FF8C00; }

/* Scrollbar del modal */
.mat-modal-panel::-webkit-scrollbar { width: 5px; }
.mat-modal-panel::-webkit-scrollbar-track { background: #111; }
.mat-modal-panel::-webkit-scrollbar-thumb { background: #FF8C00; border-radius: 3px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1400px) {
    .mat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .mat-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
    .mat-hero { padding: 50px 20px 40px; }
    .mat-title { font-size: 48px; }
}
@media (max-width: 600px) {
    .mat-grid { grid-template-columns: repeat(2, 1fr); }
    .mat-modal-panel { padding: 30px 22px 40px; }
    .mat-modal-cat-title { font-size: 22px; }
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-nav-dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-nav-dot.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }
    .contacto-layout {
        grid-template-columns: 1fr 1fr;
    }
    .contacto-mapa {
        grid-column: 1 / -1;
        height: 220px;
    }
    .portfolio-sidebar,
    .faq-sidebar,
    .contacto-sidebar {
        position: static;
    }
    .port-photo {
        width: 190px;
        height: 312px;
    }
    /* De 8 columnas (escritorio) a 4 — saltar directo a 2 en este ancho
       "tablet/notebook" hacía que cada hexágono quedara gigante y con el
       gap de 4px (pensado para 8 columnas apretadas) se veían pegados
       entre sí, casi superpuestos. */
    .procesos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}
@media (max-width: 900px) {
    .procesos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Menú hamburguesa: arranca antes que el resto del reajuste mobile, para que
   ventanas de notebook (ancho intermedio) no se queden con el header apretado */
@media (max-width: 1300px) {
    header {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
    }
    /* Los dots ya son redundantes con el menú hamburguesa y tapaban texto */
    .side-nav {
        display: none;
    }
    header .whatsapp-label {
        display: none;
    }
    header .whatsapp-btn {
        padding: 8px 10px;
        margin-right: 4px;
    }
    .vc-img { height: 42px; }
    .logo-divider { height: 34px; margin: 0 10px; }
    .text-top { font-size: 10px; letter-spacing: 0.5px; margin-bottom: 0; }
    .text-main { font-size: 19px; transform: none; }
    .text-sub { font-size: 6.5px; letter-spacing: 0.7px; margin-top: 1px; }

    nav#main-nav {
        position: fixed;
        inset: 0;
        top: 0;
        width: 100%;
        height: 100dvh;
        background-color: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        z-index: 1500;
    }
    nav#main-nav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    nav#main-nav a {
        font-size: 22px;
    }
    body.nav-open-lock {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 30px 40px;
    }
    .hero h2 {
        font-size: 48px;
    }
    .port-photo {
        width: 168px;
        height: 276px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-item:nth-child(odd) {
        border-right: none;
    }
    .procesos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 50px;
    }
    .proceso-inner {
        padding: 18px 10px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .contacto-layout {
        grid-template-columns: 1fr;
    }
    .contacto-mapa {
        height: 200px;
    }

    /* ---- PORTFOLIO: título y subtítulo iban en fila (como escritorio) y
       nunca se apilaban — a ciertos anchos intermedios el subtítulo quedaba
       aplastado en una columna angosta, mostrando solo tiras de texto. ---- */
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .port-subtitle {
        max-width: 100%;
    }

    /* ---- MATERIALES: modal de detalle, foto grande arriba en vez de comprimida al costado ---- */
    .mat-modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mat-modal-photos {
        order: -1;
    }
    .mat-carousel {
        max-width: 320px;
        margin: 0 auto;
    }
    /* Sin hover en mobile: la etiqueta del material queda siempre visible */
    .mat-carousel-slide-label {
        opacity: 1;
    }

    /* ---- NOSOTROS: de layout fijo "todo en una pantalla" a stack normal ---- */
    .nosotros-section {
        min-height: unset;
    }
    /* "EXPERIENCIA | CALIDAD | CONFIANZA" en una sola línea también en
       mobile — el letter-spacing y los márgenes de los separadores estaban
       pensados para escritorio y hacían que la última palabra se cayera a
       un segundo renglón. */
    .nosotros-tagline {
        letter-spacing: 1.5px;
        white-space: nowrap;
    }
    .nosotros-tagline .pipe {
        margin: 0 5px;
    }
    .nosotros-hero-full {
        flex-direction: column;
        align-items: stretch;
    }
    .nosotros-hero-photo,
    .nosotros-hero-video {
        position: static;
        width: 100%;
        height: 220px;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .nosotros-hero-full::before {
        display: none;
    }
    .nosotros-hero-full .nosotros-main-wrapper {
        max-width: 100%;
        padding: 28px 20px 32px;
    }
    .nosotros-title {
        font-size: 40px;
    }
    .stats-row {
        flex-wrap: wrap;
        row-gap: 16px;
    }
    .stat-block {
        flex: 1 1 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 14px 0 0;
    }
    .stat-block:first-child {
        border-top: none;
        padding-top: 0;
    }
    .nosotros-mid-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .nosotros-foto-operario {
        min-height: 220px;
    }
    .tradicion-box,
    .historia-texto-largo {
        padding: 28px 20px;
    }
    .nosotros-valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .valor-card-item {
        border-right: 1px solid #1e1e1e;
        border-bottom: 1px solid #1e1e1e;
    }
    .valor-card-item:nth-child(2n) {
        border-right: none;
    }
    .valor-card-item:nth-child(3),
    .valor-card-item:nth-child(4) {
        border-bottom: none;
    }

    /* ---- PROCESOS: panel de detalle, de 3 columnas fijas a stack ---- */
    .detalle-inner-wrap {
        padding: 90px 5% 40px;
    }
    .detalle-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .det-title {
        font-size: 34px;
    }
    /* El video y las fotos de al lado, que en escritorio van uno junto al
       otro, en mobile no entran así de angostos: se apilan uno arriba del
       otro, cada uno con su propia altura fija en vez de "height:100%" del
       otro (que en una sola columna quedaría en 0). */
    .det-media-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    /* Video: SIEMPRE 60vh de tope, en los dos casos (proceso normal y el de
       Corte con tabs) — esto no se toca. */
    .det-video-box,
    .det-media-layout.tall-video .det-video-box {
        height: auto;
        max-height: 60vh;
        width: 100%;
    }
    /* Foto: número fijo propio, independiente del video, en los dos casos —
       así un cambio futuro a uno no puede arrastrar al otro por accidente. */
    .det-side-imgs,
    .det-media-layout.tall-video .det-side-imgs {
        height: 480px;
    }
    .btn-close-detalle {
        top: 14px;
        right: 5%;
        font-size: 30px;
    }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background-color: #0d0d0d;
    border-top: 2px solid #FF8C00;
    box-shadow: 0 -6px 32px rgba(255, 140, 0, 0.18);
    padding: 32px 60px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-size: 14px;
    color: #aaa;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.footer-dev-link {
    color: #f3664c;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-dev-link:hover {
    color: #ff8570;
}

.footer-social {
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-footer.footer-visible .footer-social,
.site-footer.footer-visible .footer-copy {
    opacity: 1;
    transform: translateY(0);
}

.footer-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #FF8C00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.footer-social-link:hover {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

@media (max-width: 768px) {
    .site-footer { padding: 24px 30px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-copy { font-size: 12px; line-height: 1.6; }
}
/* ── Formas de vidrio decorativas animadas (FAQ + Contacto) ── */
.shapes-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gs {
    position: absolute;
    border: 1px solid rgba(255, 140, 0, 0.22);
}

/* Arranca fuera por arriba, entra y sale */
.gs-rect-1 {
    width: 280px; height: 160px;
    top: -180px; right: 8%;
    animation: gsFloat1 7s ease-in-out infinite alternate;
}
/* Flota adentro */
.gs-circle-1 {
    width: 120px; height: 120px;
    border-radius: 50%;
    top: 15%; left: 3%;
    animation: gsFloat2 6s ease-in-out infinite alternate;
}
/* Arranca fuera por derecha, entra y sale */
.gs-oval-1 {
    width: 240px; height: 90px;
    border-radius: 50%;
    bottom: 18%; right: -260px;
    animation: gsFloat3 8s ease-in-out infinite alternate;
}
/* Óvalo vertical, flota adentro */
.gs-oval-2 {
    width: 80px; height: 200px;
    border-radius: 50%;
    top: 30%; left: 20%;
    animation: gsFloat4 7s ease-in-out infinite alternate;
}
/* Pastilla horizontal, flota adentro con rotación */
.gs-pill-1 {
    width: 200px; height: 52px;
    border-radius: 100px;
    top: 55%; left: 35%;
    animation: gsFloat5 5s ease-in-out infinite alternate;
}
/* Arranca fuera por derecha */
.gs-pill-2 {
    width: 52px; height: 160px;
    border-radius: 100px;
    top: 20%; right: -80px;
    animation: gsFloat6 6s ease-in-out infinite alternate;
}
/* Rombo, gira bastante */
.gs-diamond {
    width: 80px; height: 80px;
    bottom: 25%; left: 8%;
    animation: gsFloat7 5s ease-in-out infinite alternate;
}
/* Arranca fuera por abajo */
.gs-rect-2 {
    width: 140px; height: 70px;
    bottom: -80px; right: 28%;
    animation: gsFloat8 7s ease-in-out infinite alternate;
}
/* Círculo grande, arranca fuera por arriba */
.gs-circle-2 {
    width: 230px; height: 230px;
    border-radius: 50%;
    top: -250px; left: 42%;
    opacity: 0.8;
    animation: gsFloat1 9s ease-in-out infinite alternate;
}
/* Triángulo — flota con rotación */
.gs-triangle-1 {
    width: 140px; height: 120px;
    top: 10%; left: 22%;
    animation: gsFloat4 6s ease-in-out infinite alternate;
    border: none;
}
/* Triángulo invertido — entra desde abajo */
.gs-triangle-2 {
    width: 110px; height: 96px;
    bottom: -100px; right: 15%;
    animation: gsFloat9 7s ease-in-out infinite alternate;
    border: none;
}

@keyframes gsFloat1 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(30px, 200px) rotate(25deg); }
}
@keyframes gsFloat2 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(70px, 80px) rotate(20deg); }
}
@keyframes gsFloat3 {
    from { transform: translate(0, 0) rotate(-5deg); }
    to   { transform: translate(-280px, -30px) rotate(10deg); }
}
@keyframes gsFloat4 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(60px, -70px) rotate(30deg); }
}
@keyframes gsFloat5 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(-80px, -50px) rotate(25deg); }
}
@keyframes gsFloat6 {
    from { transform: translate(0, 0) rotate(-10deg); }
    to   { transform: translate(-120px, 60px) rotate(20deg); }
}
@keyframes gsFloat7 {
    from { transform: rotate(45deg) translate(0, 0); }
    to   { transform: rotate(100deg) translate(60px, -60px); }
}
@keyframes gsFloat8 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(-40px, -100px) rotate(-20deg); }
}
@keyframes gsFloat9 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(-60px, -130px) rotate(20deg); }
}

.faq-layout,
.contacto-layout {
    position: relative;
    z-index: 1;
}

/* ── Split Reveal — Hero títulos ── */
.hero-word {
    display: block;
    overflow: hidden;
    line-height: 1;
}

.hero-word span {
    display: block;
    opacity: 0;
    animation: splitReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
}

body.loaded .hero-word span,
body.loaded .hero h2::after,
body.loaded .hero-subtitle,
body.loaded .cta-btn {
    animation-play-state: running;
}

.hero-word:nth-child(1) span {
    transform: translateY(-110%);
    animation-delay: 0.15s;
}

.hero-word:nth-child(2) span {
    transform: translateY(110%);
    animation-delay: 0.45s;
}

@keyframes splitReveal {
    to { transform: translateY(0); opacity: 1; }
}

/* Línea naranja crece después del texto */
.hero h2::after {
    width: 0;
    animation: growLine 0.8s ease forwards;
    animation-delay: 1.05s;
    animation-play-state: paused;
}

@keyframes growLine {
    to { width: 80px; }
}

/* Subtítulo */
.hero-subtitle {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUpHero 0.9s ease forwards;
    animation-delay: 1.3s;
    animation-play-state: paused;
}

/* Botón CTA */
.cta-btn {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUpHero 0.9s ease forwards;
    animation-delay: 1.55s;
    animation-play-state: paused;
}

@keyframes fadeUpHero {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Fade + Counter Up — Nosotros ── */
@keyframes fadeSlideUpNosotros {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Ocultos hasta que el observer agrega .in-view */
.nosotros-anim-1,
.nosotros-anim-2,
.nosotros-anim-3,
.nosotros-anim-4,
.nosotros-anim-5 { opacity: 0; transform: translateY(28px); }

.nosotros-section.in-view .nosotros-anim-1 { animation: fadeSlideUpNosotros 0.65s ease forwards 0.00s; }
.nosotros-section.in-view .nosotros-anim-2 { animation: fadeSlideUpNosotros 0.65s ease forwards 0.14s; }
.nosotros-section.in-view .nosotros-anim-3 { animation: fadeSlideUpNosotros 0.65s ease forwards 0.24s; }
.nosotros-section.in-view .nosotros-anim-4 { animation: fadeSlideUpNosotros 0.65s ease forwards 0.34s; }
.nosotros-section.in-view .nosotros-anim-5 { animation: fadeSlideUpNosotros 0.65s ease forwards 0.46s; }

.stat-number {
    min-height: 1.1em;
    transition: opacity 0.5s ease;
}

.stat-number.hidden {
    opacity: 0 !important;
}

/* ── Animaciones Procesos — título + hexágonos ── */
@keyframes fadeUpProcesos {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes growLineProcesos {
    from { width: 0; }
    to   { width: 40px; }
}

@keyframes hexIn {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Estado inicial oculto */
.procesos-pre-anim { opacity: 0; }
.procesos-pre-line { width: 0; }

/* Clases que disparan la animación */
.procesos-do-anim-1 { animation: fadeUpProcesos 0.65s ease both 0.00s; }
.procesos-do-anim-2 { animation: fadeUpProcesos 0.65s ease both 0.14s; }
.procesos-do-anim-3 { animation: fadeUpProcesos 0.65s ease both 0.26s; }
.procesos-do-anim-4 { animation: growLineProcesos 0.6s ease both 0.38s; }

/* ── Animaciones Materiales — barra vertical + line wipe ── */
@keyframes matGrowUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes matGrowBar {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes matLineWipe {
    0%   { transform: translateX(-100%); }
    45%  { transform: translateX(0%); }
    55%  { transform: translateX(0%); }
    100% { transform: translateX(110%); }
}

/* Barra vertical: transform-origin bottom para crecer desde abajo */
.mat-hero-left { overflow: hidden; }

.mat-section-num { opacity: 0; }
.mat-section-bar { transform: scaleY(0); transform-origin: bottom; }

.mat-section-num.mat-anim {
    animation: matGrowUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0s;
}

.mat-section-bar.mat-anim {
    animation: matGrowBar 0.6s cubic-bezier(0.22, 1, 0.36, 1) both 0.2s;
}

/* Line wipe: título y subtítulo — solo cuando el observer agrega mat-active */
.mat-wipe-wrap {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Contenido oculto hasta que el wipe lo revele */
.mat-wipe-wrap .mat-title,
.mat-wipe-wrap .mat-subtitle { opacity: 0; }

.mat-wipe-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #FF8C00;
    transform: translateX(-100%);
    will-change: transform;
}

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

/* Wipe naranja entra y sale — texto aparece cuando el naranja comienza a salir (55% de la animación) */
.materiales-section.mat-active .mat-wipe-wrap.mat-wipe-1::after {
    animation: matLineWipe 0.7s cubic-bezier(0.77, 0, 0.18, 1) forwards 0.3s;
}
.materiales-section.mat-active .mat-wipe-wrap.mat-wipe-1 .mat-title {
    animation: matReveal 0.01s forwards 0.69s; /* 0.3 + 0.7*0.55 */
}

.materiales-section.mat-active .mat-wipe-wrap.mat-wipe-2::after {
    animation: matLineWipe 0.7s cubic-bezier(0.77, 0, 0.18, 1) forwards 0.6s;
}
.materiales-section.mat-active .mat-wipe-wrap.mat-wipe-2 .mat-subtitle {
    animation: matReveal 0.01s forwards 0.985s; /* 0.6 + 0.7*0.55 */
}

/* ── Animaciones Portfolio — encabezado ── */
@keyframes portFadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes portFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes portGrowLine {
    from { width: 0; }
    to   { width: 50px; }
}
@keyframes portWipeReveal {
    0%   { transform: translateX(-101%); }
    40%  { transform: translateX(0%); }
    60%  { transform: translateX(0%); }
    100% { transform: translateX(101%); }
}
@keyframes portFadeIn {
    to { opacity: 1; }
}

/* Estados iniciales ocultos */
.port-label    { opacity: 0; transform: translateY(-16px); }
.port-line     { width: 0; }
.port-subtitle { opacity: 0; transform: translateY(16px); }

/* Wrapper del line wipe */
.port-title-wipe {
    display: block;
    overflow: hidden;
    position: relative;
}
.port-title-wipe::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #FF8C00;
    transform: translateX(-101%);
}
.port-title-wipe.run::before {
    animation: portWipeReveal 0.75s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.port-title-wipe .port-title {
    opacity: 0;
}
.port-title-wipe.run .port-title {
    animation: portFadeIn 0s forwards 0.3s;
}

/* Clases que disparan animaciones */
.port-anim-label    { animation: portFadeDown 0.6s ease forwards; }
.port-anim-line     { animation: portGrowLine 0.5s ease forwards; }
.port-anim-subtitle { animation: portFadeUp 0.6s ease forwards; }

/* ── Botón Scroll To Top ── */
.scroll-top-btn {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 50px;
    height: 50px;
    background: #FF8C00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events: none;
    z-index: 9999;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top-btn:hover {
    background: #e67e00;
}
