:root {
    --steel-dark: #17212b;
    --steel-blue: #1668a8;
    --steel-light: #eaf1f5;
}

body { 
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
}

/* ============ CLASES DE INPUTS Y FORMULARIOS ============ */
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.form-input:focus {
    border-color: var(--steel-blue);
    box-shadow: 0 0 0 2px rgba(102, 205, 255, 0.1);
}

.dark .form-input {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.dark .form-input::placeholder {
    color: #94a3b8;
}

/* ============ ETIQUETAS DE FORMULARIO ============ */
.text-label {
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.dark .text-label {
    color: #cbd5e1;
}

/* ============ CLASES DE BOTONES ============ */
:is(.btn-primary, .novedad-cotizar) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--steel-blue);
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

:is(.btn-primary, .novedad-cotizar):hover {
    background-color: #0d5a99;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    color: #475569;
    transition: all 0.3s;
    background-color: white;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.dark .btn-secondary {
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    background-color: transparent;
}

.dark .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============ CLASES DE ICONOS ============ */
.icon-small {
    font-size: 1.25rem;
    color: var(--steel-blue);
}

/* ============ CLASES DE TÍTULOS ============ */
:is(.title-section, .cat-cta-title, .section-title-large) {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--steel-dark);
}

.dark :is(.title-section, .cat-cta-title, .section-title-large) {
    color: white;
}

/* ============ CLASES DE SELECTS ============ */
.select-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: white;
    padding: 0.75rem 1rem;
    color: #475569;
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    cursor: pointer;
}

.select-input:focus {
    border-color: var(--steel-blue);
    box-shadow: 0 0 0 2px rgba(102, 205, 255, 0.1);
}

.dark .select-input {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: #1a2633;
    color: white;
}

/* ============ CLASES DE ÁREAS DE TEXTO ============ */
.textarea-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    outline: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.textarea-input:focus {
    border-color: var(--steel-blue);
    box-shadow: 0 0 0 2px rgba(102, 205, 255, 0.1);
}

.dark .textarea-input {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.dark .textarea-input::placeholder {
    color: #94a3b8;
}

/* ============ CLASES DE CONTENEDORES ============ */

:is(.page-max-width, .cat-cta, .cta-final, .feature-layout) {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    :is(.page-max-width, .cat-cta, .cta-final, .feature-layout) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :is(.page-max-width, .cat-cta, .cta-final, .feature-layout) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============ CLASES DE UPLOAD ============ */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 2px dashed #cbd5e1;
    background-color: #f8fafc;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--steel-blue);
    background-color: rgba(22, 104, 168, 0.05);
}

.dark .upload-zone {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .upload-zone:hover {
    background-color: rgba(22, 104, 168, 0.1);
}

.upload-text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.dark .upload-text {
    color: #e2e8f0;
}

.upload-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #475569;
}

.dark .upload-hint {
    color: #cbd5e1;
}

/* Video del banner */
.video-card {
    position: relative;
    overflow: hidden;

    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Soporte para Safari */
}

/* valores del fondo de banner */
:is(.hero-pattern, .hero-section, .plates-hero, .rol-hero) {
    background-color: var(--steel-dark);
    background-image: linear-gradient(90deg, rgba(14, 25, 35, .90), rgba(14, 25, 35, .45));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

:is(.section-label, .cat-tag, .cat-tag-sky, .hero-eyebrow, .plates-eyebrow, .section-eyebrow, .section-eyebrow-light) {
    letter-spacing: .14em;
    text-transform: uppercase;
}
:is(.data-card, .company-facts) { border-top: 3px solid var(--steel-blue); }
:is(.contact-link, .footer-phone):hover { color: #fff; }

/* ============ Cursor personalizado: punto azul ============ */
/* El cursor se aloja dentro del diálogo activo para compartir su capa superior.
   Si un diálogo no dispone del cursor, conserva el cursor nativo como respaldo. */
html.custom-cursor:not(:has(dialog[open])) body,
html.custom-cursor:not(:has(dialog[open])) body *,
html.custom-cursor.cursor-sobre-modal body,
html.custom-cursor.cursor-sobre-modal body *,
html.custom-cursor.cursor-sobre-modal dialog::backdrop {
    cursor: none;
}

/* tamaño del cursor y  reactividad con elementos */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background-color: var(--steel-blue);
    border: 1px solid rgba(255, 255, 255, .85);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px 4px rgba(22, 104, 168, .55);
    transition: width .2s ease, height .2s ease, box-shadow .2s ease;
    animation: dotColorCycle 6s ease-in-out infinite;
}

html.custom-cursor:not(:has(dialog[open])) .cursor-dot,
html.custom-cursor.cursor-sobre-modal .cursor-dot { opacity: 1; }

.cursor-dot.is-hover {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 24px 8px rgba(255, 255, 255, .5);
}

@keyframes dotColorCycle {
    0%   { background-color: #b7c2cc; } /* gris */
    33%  { background-color: #ffffff; } /* blanco */
    66%  { background-color: var(--steel-blue); } /* azul */
    100% { background-color: #b7c2cc; }
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
    body, a, button, input, textarea, select, label, [role="button"] { cursor: auto; }
}

/* ============ Atardecer con tonos RGB cambiantes ============ */
:is(.hero-pattern, .hero-section, .plates-hero, .rol-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg,
        rgba(120, 90, 255, .32),
        rgba(22, 104, 168, .42),
        rgba(200, 205, 212, .22),
        rgba(255, 255, 255, .14));
    background-size: 320% 320%;
    animation: auroraShift 3s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes auroraShift {
    0%   { background-position: 0% 40%; }
    50%  { background-position: 100% 60%; }
    100% { background-position: 0% 40%; }
}

/* ============ Fondo tipo espacio (campo de estrellas) ============ */
.starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    :is(.hero-pattern, .hero-section, .plates-hero, .rol-hero)::before {
        animation: none;
    }
}
/* edicion de imagenes_trabajo */
.imagenes_trabajo { margin-top: 1.25rem; }
.imagenes_trabajo img {
    border-radius: 12px;
}

/* ============ Galería tipo "dock": recuadros que crecen al pasar el mouse ============ */
.galeria-stacked {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 430px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 40px 25px 40px; 
    overflow: visible;
}

/* TARJETAS */
.galeria-stacked-item {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    height: 320px;
    margin-left: -115px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #ffffff;
    background-color: #cbd5e1;
    box-shadow: -15px 0 25px rgba(0,0,0,0.15);
    transition:
        transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease;
    cursor: pointer;
    z-index: 1;
}

/* Primera imagen no necesita margen negativo */
.galeria-stacked-item:first-child {
    margin-left: 0;
}

/* IMAGEN */
.galeria-stacked-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODO OSCURO */
.dark .galeria-stacked-item {
    border-color: #17212b;
    background-color: #334155;
    box-shadow: -15px 0 25px rgba(0,0,0,0.6);
}

/* IMAGEN SOBRE LA QUE ESTÁ EL CURSOR */
.galeria-stacked-item:hover {
    transform:
        translateY(-25px)
        scale(1.12);
    z-index: 20;
    filter: brightness(1);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.30);
}
.galeria-stacked-item:hover ~ .galeria-stacked-item {
    transform: translateX(115px);
}
.galeria-stacked:hover
.galeria-stacked-item:not(:hover) {
    filter: brightness(0.60);
}
.galeria-stacked:not(:hover)
.galeria-stacked-item {
    filter: brightness(1);
}

/*
   RESPONSIVE */
@media (max-width: 900px) {
    .galeria-stacked {
        width: 100%;
        max-width: 500px;
        height: 350px;
        padding: 20px 20px;
        justify-content: center;
        overflow: visible;
    }
    .galeria-stacked-item {
        flex: 0 0 180px;
        width: 180px;
        height: 270px;
        margin-left: -90px;
    }
    .galeria-stacked-item:first-child {
        margin-left: 0;
    }
    .galeria-stacked-item:hover ~ .galeria-stacked-item {
        transform: translateX(90px);
    }
}

/*
   CELULAR*/
@media (max-width: 640px) {
    .galeria-stacked {
        width: 100%;
        max-width: 100%;
        height: 280px;
        padding: 15px 5px;
        justify-content: center;
        /* evita que la galería ensanche la página */
        overflow: hidden;
    }
    .galeria-stacked-item {
        flex: 0 0 135px;
        width: 135px;
        height: 210px;
        margin-left: -68px;
    }
    .galeria-stacked-item:first-child {
        margin-left: 0;
    }
    .galeria-stacked-item:hover {
        transform:
            translateY(-12px)
            scale(1.06);
        z-index: 20;
    }
    .galeria-stacked-item:hover ~ .galeria-stacked-item {
        transform: translateX(68px);
    }
}

/* celular */
@media (max-width: 380px) {
    .galeria-stacked {
        width: 100%;
        max-width: 100%;
        height: 250px;
        padding: 10px 2px;
        overflow: hidden;
    }
    .galeria-stacked-item {
        flex: 0 0 120px;
        width: 120px;
        height: 190px;
        margin-left: -60px;
    }
    .galeria-stacked-item:first-child {
        margin-left: 0;
    }
    .galeria-stacked-item:hover {
        transform:
            translateY(-10px)
            scale(1.05);
    }
    .galeria-stacked-item:hover ~ .galeria-stacked-item {
        transform: translateX(60px);
    }
}

/* Carrusel piramidal */

/* CONTENEDOR */
.galeria-carrusel {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
        margin: 0 auto;
}

/* ÁREA DEL CARRUSEL */
.carrusel {
    position: relative;
    width: 500px;
    height: 300px;
}

/* IMÁGENES  -carrusl piramidal- */

.imagen {
    position: absolute;
    width: 300px;
    height: 200px;
    left: 50%;
    top: 50%;
    border-radius: 15px;
    overflow: hidden;
    transition:
        transform 0.6s ease,
        opacity 0.6s ease,
        filter 0.6s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    cursor: pointer;
}

.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*
   IMAGEN PRINCIPAL*/
.pos0 {
    transform:
        translate(-50%, -50%)
        translateY(-55px)
        scale(1.15);
    z-index: 10;
    opacity: 1;
    filter: brightness(1);
}

/*
   IMAGEN DERECHA */
.pos1 {
    transform:
        translate(-50%, -50%)
        translateX(145px)
        translateY(20px)
        scale(.82);
    z-index: 8;
    opacity: .75;
    filter: brightness(.75);
}

/*
   SEGUNDA DERECHA */
.pos2 {
    transform:
        translate(-50%, -50%)
        translateX(210px)
        translateY(65px)
        scale(.65);
    z-index: 6;
    opacity: .45;
    filter: brightness(.6);
}

/* 
   IZQUIERDA */
.pos4 {
    transform:
        translate(-50%, -50%)
        translateX(-145px)
        translateY(20px)
        scale(.82);
    z-index: 8;
    opacity: .75;
    filter: brightness(.75);
}

/* 
   SEGUNDA IZQUIERDA */
.pos3 {
    transform:
        translate(-50%, -50%)
        translateX(-210px)
        translateY(65px)
        scale(.65);
    z-index: 6;
    opacity: .45;
    filter: brightness(.6);
}

/* 
   FLECHAS */
.flecha {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 20;
    transition: .25s;
}
.flecha:hover {
    background: rgba(0,0,0,.9);
    transform:
        translateY(-50%)
        scale(1.1);
}
.flecha.izquierda {
    left: 20px;
}
.flecha.derecha {
    right: 20px;
}

/*
   TEXTO
   */
.titulo {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: rgba(0,0,0,.65);
    color: white;
    border-radius: 20px;
    z-index: 15;
    white-space: nowrap;
}
#desarrollo .text-copy {
    max-width: 30rem;
}
@media (max-width: 1200px) and (min-width: 701px) {
    .pos1 { transform: translate(-50%, -50%) translateX(120px) translateY(15px) scale(.8); }
    .pos2 { transform: translate(-50%, -50%) translateX(170px) translateY(60px) scale(.62); }
    .pos4 { transform: translate(-50%, -50%) translateX(-120px) translateY(15px) scale(.8); }
    .pos3 { transform: translate(-50%, -50%) translateX(-170px) translateY(60px) scale(.62); }
}

/*
   RESPONSIVE*/

@media (max-width: 700px) {

    .carrusel {
        width: 100%;
    }
    .imagen {
        width: 220px;
        height: 150px;
    }
    .pos1 {
        transform:
            translate(-50%, -50%)
            translateX(130px)
            translateY(20px)
            scale(.75);
    }
    .pos2 {
        opacity: 0;
    }
    .pos4 {
        transform:
            translate(-50%, -50%)
            translateX(-130px)
            translateY(20px)
            scale(.75);
    }
    .pos3 {
        opacity: 0;
    }
}
header {
    max-width: 100vw;
}

/*responsive */
@media (max-width: 1024px) {
    main {
        overflow-x: hidden;   /* respaldo para navegadores antiguos */
        overflow-x: clip;     /* navegadores modernos */
    }
}

@media (max-width: 700px) {

    .carrusel {
        height: 320px;
    }
    /* Las imágenes ocultas no deben recibir toques */
    .pos2,
    .pos3 {
        pointer-events: none;
    }
}

/* Componentes y secciones del contenido. */
:root { --sec-light: #fff; --sec-alt: #f1f5f9; --sec-border: #e2e8f0; }
html.dark { --sec-light: #0f1720; --sec-alt: #111a23; --sec-border: rgba(255,255,255,.1); }

/* Secciones */
.section-light, .section-alt {
    border-top: 1px solid var(--sec-border);
    border-bottom: 1px solid var(--sec-border);
    padding: 5rem 0;
    transition: background-color .3s, border-color .3s;
}
.section-light { background-color: var(--sec-light); }
.section-alt { background-color: var(--sec-alt); }

/* Navegación, etiquetas y chips */
:is(.nav-link, .nav-dropdown-btn) { font-size: .875rem; font-weight: 600; color: #475569; }
:is(.nav-link, .nav-dropdown-btn):hover { color: var(--steel-blue); }
html.dark :is(.nav-link, .nav-dropdown-btn) { color: #cbd5e1; }
html.dark :is(.nav-link, .nav-dropdown-btn):hover { color: #7dd3fc; }
:is(.chip-list, .hero-chips) { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.chip { border-radius: 9999px; background: #f0f9ff; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: #0c4a6e; }
html.dark .chip { background: rgba(255,255,255,.1); color: #bae6fd; }

/* Textos */
:is(.text-copy, .cat-lead, .rol-note) { margin-top: 1rem; line-height: 1.75rem; color: #475569; }
html.dark :is(.text-copy, .cat-lead, .rol-note) { color: #cbd5e1; }

/* Tarjetas */
:is(.card-plain, .company-milestone, .rol-step) { border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
html.dark :is(.card-plain, .company-milestone, .rol-step) { border-color: #475569; background: #0f1720; box-shadow: none; }
.card-servicio { border-radius: .75rem; border: 1px solid #e2e8f0; padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
html.dark .card-servicio { border-color: rgba(255,255,255,.1); box-shadow: none; }
.card-sede { border-radius: .5rem; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); padding: 1.75rem; }
.icon-box { display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: .25rem; background: #f0f9ff; font-size: 1.25rem; color: var(--steel-blue); }
html.dark .icon-box { background: rgba(255,255,255,.05); }

/* Ficha de datos de la empresa */
.data-cell { background: #fff; padding: 1.5rem; }
html.dark .data-cell { background: #0f1720; }
.data-term { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: #64748b; }
html.dark .data-term { color: #94a3b8; }

/* Opciones del select (modo oscuro) */
.select-input option { 
    background: #fff; color: #334155; }
html.dark .select-input option { background: #1a2633; color: #fff; }

/* ==========================================================
   FORMULARIO: pantalla de carga mientras se envía
   Cubre solo el formulario y bloquea cualquier clic.
   ========================================================== */
:is(.form-cotizacion, .quotation-form) { position: relative; }
.form-loading {
    position: absolute; inset: -.5rem; z-index: 20;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    border-radius: .75rem; text-align: center;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    cursor: progress;
}
.form-loading[hidden] { display: none; }
html.dark .form-loading { background: rgba(15,23,32,.88); }
.form-loading p { font-weight: 700; color: var(--steel-dark); }
.form-loading small { font-size: .8rem; color: #64748b; }
html.dark .form-loading p { color: #fff; }
html.dark .form-loading small { color: #94a3b8; }
.form-loading-spinner {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 3px solid rgba(22,104,168,.2); border-top-color: var(--steel-blue);
    animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
:is(.form-error, .rol-file-error) { border-radius: .5rem; background: #fef2f2; padding: .75rem 1rem; font-size: .875rem; font-weight: 600; color: #b91c1c; }
html.dark :is(.form-error, .rol-file-error) { background: rgba(239,68,68,.1); color: #fca5a5; }

/* Navegación, banner, pie y contacto compartidos por las tres páginas. */

/* ---- Cuerpo de la página ---- */
:is(.page-body, .inicio-page, .company-page, .corte-page, .laser-page, .plegado-page, .rol-page) { background-color: #f8fafc; color: #1e293b; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color .3s, color .3s; }
html.dark :is(.page-body, .inicio-page, .company-page, .corte-page, .laser-page, .plegado-page, .rol-page) { background-color: #0d141c; color: #e2e8f0; }

/* ---- Encabezado ---- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    border-bottom: 1px solid #e2e8f0;
    background-color: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background-color .3s, border-color .3s;
}
html.dark .site-header { border-color: rgba(255, 255, 255, .1); background-color: rgba(13, 20, 28, .9); }

.site-nav { margin: 0 auto; display: flex; height: 5rem; max-width: 80rem; align-items: center; justify-content: space-between; padding: 0 .5rem; }
.site-brand { display: flex; align-items: center; gap: .75rem; color: var(--steel-dark); }
html.dark .site-brand { color: #fff; }
.site-brand img { height: 2.75rem; width: 2.75rem; object-fit: contain; }
.site-brand span { font-size: .875rem; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }

.site-menu { display: flex; align-items: center; gap: .5rem; }
.site-links { display: none; align-items: center; gap: 1.75rem; }
.site-menu-toggle { display: none; }

@media (max-width: 767px) {
    .site-navigation-ready .site-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px; padding: .5rem;
        border: 1px solid #cbd5e1; border-radius: .5rem;
        font-size: .75rem; font-weight: 600; color: inherit;
    }
    html.dark .site-menu-toggle { border-color: #475569; }
    .site-nav:has(.site-menu-toggle) .site-brand { gap: .5rem; min-width: 0; }
    .site-nav:has(.site-menu-toggle) .site-brand span { font-size: .75rem; }
    .site-links.site-links-open {
        display: flex; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        max-height: calc(100dvh - 81px); overflow-y: auto;
        padding: 16px; border-bottom: 1px solid #cbd5e1;
        background: #fff; box-shadow: 0 12px 24px #17212b24;
    }
    html.dark .site-links.site-links-open { background: #0d141c; border-color: #475569; }
    .site-links-open > :is(.nav-link, .nav-dropdown-btn),
    .site-links-open .nav-dropdown-btn { display: flex; align-items: center; width: 100%; min-height: 44px; justify-content: flex-start; }
    .site-links-open .nav-dropdown-menu a { display: flex; align-items: center; min-height: 44px; }
    .site-links-open .menu-secciones-btn { width: 100%; min-height: 44px; }
    .site-links-open .menu-secciones-panel { position: static; width: 100%; max-width: none; box-shadow: none; }
    .site-links-open .nav-dropdown-menu { position: static; width: 100%; box-shadow: none; }
    .site-links.site-links-open .nav-dropdown:not(.nav-dropdown-open) .nav-dropdown-menu { display: none; }
    .site-links-open .nav-dropdown.nav-dropdown-open .nav-dropdown-menu { display: block; }
    .site-header:has(.site-links-open) { z-index: 80; }
    .site-menu-toggle:focus-visible { outline: 3px solid var(--steel-blue); outline-offset: 3px; }
}

/* Menús desplegables (aparecen al pasar el ratón) */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: .25rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

.nav-dropdown-btn :is(.icon, .icon-chevron-down, .icon-cloud-arrow-up-heading, .icon-compass-drafting, .icon-file-invoice-dollar-note, .icon-helmet-safety-heading, .icon-industry-heading, .icon-location-dot-location, .icon-microchip, .icon-moon, .icon-paper-plane, .icon-screwdriver-wrench-heading, .icon-sun, .icon-whatsapp) { height: 1rem; width: 1rem; }
.nav-dropdown-menu {
    display: none; position: absolute; left: 0; top: 100%; z-index: 50;
    width: 8rem; padding-top: .5rem;
    border: 1px solid #e2e8f0; border-radius: .375rem; background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
html.dark .nav-dropdown-menu { border-color: #334155; background: #1e293b; }
.nav-dropdown-menu a { display: block; padding: .5rem 1rem; font-size: .875rem; color: #475569; }
.nav-dropdown-menu a:hover { background: #f1f5f9; color: var(--steel-blue); }
html.dark .nav-dropdown-menu a { color: #cbd5e1; }
html.dark .nav-dropdown-menu a:hover { background: #334155; }

/* Botón de cambio de tema */
.theme-toggle {
    display: flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; border-radius: 9999px; background: none; color: #475569; cursor: pointer;
    transition: color .15s, border-color .15s;
}
.theme-toggle:hover { border-color: var(--steel-blue); color: var(--steel-blue); }
html.dark .theme-toggle { border-color: rgba(255, 255, 255, .15); color: #cbd5e1; }
html.dark .theme-toggle:hover { color: #7dd3fc; }

@media (min-width: 640px) {
    .site-nav { padding: 0 1.5rem; }
    .site-brand span { font-size: 1rem; }
    .site-menu { gap: 1rem; }
}
@media (min-width: 768px) { .site-links { display: flex; } }
/* Sin JavaScript (html sin la clase .js): en celular el menú se muestra
   como una fila de enlaces bajo el logo, ya que el botón «Menú» no funcionaría. */
@media (max-width: 767px) {
    html:not(.js) .site-header:has(.site-menu-toggle) { position: relative; }
    html:not(.js) .site-nav:has(.site-menu-toggle) { height: auto; flex-wrap: wrap; row-gap: .5rem; padding-block: .75rem; }
    html:not(.js) .site-nav:has(.site-menu-toggle) .site-links { display: flex; flex-wrap: wrap; order: 3; width: 100%; gap: .5rem 1.25rem; font-size: .875rem; }
    html:not(.js) :is(.hero-section, .plates-hero) { padding-top: 0; }
}
/* Botones que solo funcionan con JavaScript (tema y selector de planchas). */
html:not(.js) :is(#temaToggle, .menu-secciones) { display: none; }
@media (min-width: 1024px) { .site-nav { padding: 0 2rem; } }

/* ---- Banner principal (hero) ---- */
:is(.hero-section, .rol-hero) { display: flex; min-height: 620px; align-items: center; padding-top: 5rem; color: #fff; }
.hero-inner {
    position: relative; z-index: 10; margin: 0 auto; display: grid; width: 100%; max-width: 80rem;
    align-items: center; gap: 3rem; padding: 5rem 1rem;
}
.hero-eyebrow { margin-bottom: 1.25rem; font-size: .75rem; font-weight: 700; color: #7dd3fc; }
.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.hero-title-strong { font-weight: 800; color: #e2e8f0; }
.hero-title-soft { font-weight: 500; color: #e2e8f0; }
.hero-lead { margin-top: 1.75rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: #e2e8f0; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
:is(.hero-media, .rol-hero-media) { position: relative; margin: 0 auto; width: 100%; max-width: 28rem; }
.hero-video { display: block; width: 100%; height: 20rem; border-radius: .75rem; object-fit: cover; }
@media (min-width: 640px) {
    .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero-title { font-size: 3rem; line-height: 1.25; }
}
@media (min-width: 1024px) {
    .hero-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 2rem; padding-right: 2rem; }
    .hero-title { font-size: 3.75rem; }
    :is(.hero-media, .rol-hero-media) { max-width: none; }
    .hero-video { height: 400px; }
}

/* Botones del banner */
:is(.btn-hero, .btn-hero-blue, .btn-hero-light, .btn-hero-outline) { display: inline-block; border-radius: .25rem; padding: .75rem 1.5rem; font-weight: 700; transition: background-color .15s; }
.btn-hero-blue { background-color: var(--steel-blue); color: #fff; }
.btn-hero-blue:hover { background-color: #0369a1; }
.btn-hero-outline { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.btn-hero-outline:hover { background-color: rgba(255, 255, 255, .1); }
.btn-hero-light { background-color: #fff; color: var(--steel-dark); }
.btn-hero-light:hover { background-color: #f1f5f9; }

/* ---- Sección oscura con estrellas (sedes / cotización del catálogo) ---- */
:is(.section-dark, .rol-cta),
.company-page #sedes {
    position: relative; overflow: hidden; padding: 5rem 0; color: #fff; background-color: var(--steel-dark);
    border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
html.dark :is(.section-dark, .rol-cta),
html.dark .company-page #sedes { border-color: rgba(255, 255, 255, .1); }
:is(.section-dark, .rol-cta) > :is(.page-max-width, .cat-cta, .cta-final, .feature-layout),
.company-page #sedes > :is(.page-max-width, .cat-cta, .cta-final, .feature-layout) { position: relative; z-index: 10; }

/* ---- Pie de página ---- */
.site-footer { background-color: #020617; padding: 3rem 0; color: #cbd5e1; }
.footer-inner { margin: 0 auto; display: flex; max-width: 80rem; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 0 1rem; }
.footer-brand { display: flex; align-items: flex-start; gap: .75rem; }
.footer-logo { height: 3rem; width: 3rem; border-radius: .25rem; background: #fff; object-fit: contain; padding: .25rem; }
.footer-name { font-size: 1.125rem; font-weight: 800; color: #fff; }
.footer-desc { margin-top: .5rem; max-width: 28rem; font-size: .875rem; line-height: 1.5rem; }
.footer-contact-title { font-size: .875rem; font-weight: 700; color: #fff; }
.footer-phone { display: inline-block; margin-top: .5rem; font-size: .875rem; color: #7dd3fc; }
.footer-hours { margin-top: .5rem; font-size: .75rem; color: #94a3b8; }
.footer-copy { margin: 2.5rem auto 0; max-width: 80rem; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 1rem 0; font-size: .75rem; color: #94a3b8; }
@media (min-width: 640px) {
    .footer-inner, .footer-copy { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .footer-inner { flex-direction: row; }
    .footer-contact { text-align: right; }
}
@media (min-width: 1024px) {
    .footer-inner, .footer-copy { padding-left: 2rem; padding-right: 2rem; }
}

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
    display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center;
    border-radius: 9999px; background-color: #25D366; color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    transition: transform .15s, box-shadow .15s;
}
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.whatsapp-float i { font-size: 1.875rem; line-height: 2.25rem; }

/* Una sacudida breve de campana cada 15 segundos; el mensaje permanece estable. */
.whatsapp-float > .icon-whatsapp {
    transform-origin: 50% 15%;
    animation: whatsapp-bell 2s ease-in-out 3s infinite;
}
@keyframes whatsapp-bell {
    0%, 6%, 100% { transform: rotate(0); }
    .7% { transform: rotate(18deg); }
    1.4% { transform: rotate(-16deg); }
    2.1% { transform: rotate(14deg); }
    2.8% { transform: rotate(-12deg); }
    3.5% { transform: rotate(9deg); }
    4.2% { transform: rotate(-6deg); }
    4.9% { transform: rotate(3deg); }
}
.whatsapp-float::before {
    content: ''; position: absolute; right: 100%; top: 0; width: 1rem; height: 100%;
}
.whatsapp-tooltip {
    position: absolute; right: calc(100% + .75rem); top: 50%;
    width: max-content; max-width: min(15rem, calc(100vw - 8rem));
    padding: .75rem 1rem; border: 1px solid #e2e8f0; border-radius: .5rem;
    background: #fff; color: var(--steel-dark); box-shadow: 0 6px 24px rgba(0,0,0,.15);
    font-size: .875rem; font-weight: 600; line-height: 1.5; text-align: left;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(4px, -50%);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; right: -5px; top: calc(50% - 5px);
    width: 9px; height: 9px; background: inherit; border-top: inherit; border-right: inherit;
    transform: rotate(45deg);
}
html.dark .whatsapp-tooltip { background: #1e293b; color: #f8fafc; border-color: #334155; }
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0, -50%);
}
.whatsapp-float:focus-visible { outline: 3px solid var(--steel-blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float > .icon-whatsapp { animation: none; }
    .whatsapp-float, .whatsapp-tooltip { transition: none; }
}

/* Nosotros reutiliza los componentes del inicio; aquí solo se distribuyen sus fotos y datos. */
.company-page section[id], .company-page footer[id] { scroll-margin-top: 5rem; }
.company-page .section-intro-wide > :is(.btn-primary, .novedad-cotizar) { margin-top: 1.5rem; }
.company-page .about-layout { align-items: center; }
.company-section-heading { margin-bottom: 1.5rem; }
.company-photo { min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: .75rem; position: relative; }
.company-photo-inner { height: 100%; }
.company-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.company-photo img[data-img="tecGuillotina"],
.company-photo img[data-img="capGuillotina"] { object-position: 50% 65%; }
.company-photo img[data-img="sedeMarianoMelgar"] { object-position: 50% 40%; }
.company-photo img[data-img="sedeCerroColorado"] { object-position: 50% 45%; }
.company-facts { margin-top: 2rem; }
.company-gallery { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.company-milestone strong, .company-milestone > span { display: block; }
.company-milestone strong { margin-bottom: .75rem; color: var(--steel-blue); }
html.dark .company-milestone strong { color: #7dd3fc; }
.company-map { margin-top: 2.5rem; }
.company-map-svg { width: 100%; max-width: 50rem; margin: auto; }
.company-map-city { fill: #cbd5e1; font: 700 28px Inter, sans-serif; letter-spacing: 10px; }
.company-map-label { fill: #cbd5e1; font: 16px Inter, sans-serif; }
.company-map figcaption { text-align: center; font-size: .75rem; color: #cbd5e1; }
.company-image-label { position: absolute; bottom: .75rem; left: .75rem; padding: .25rem .5rem; border-radius: .25rem; background: var(--steel-dark); color: #fff; font-size: .75rem; }
@media (min-width: 768px) { .company-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
