:root {
    --bg-color: #F5F0EB;
    --text-color: #1E1A14;
    --radius-main: 32px;
    --radius-cutout: 28px;
}

/* Base & Custom Cursor */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
}

/* Hero Wrapper */
.hero-wrapper {
    height: 100svh;
    /* Modern viewport height */
    padding: 12px;
    position: relative;
    display: flex;
}

@media (min-width: 768px) {
    .hero-wrapper {
        padding: 24px;
    }
}

/* Main Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-main);
    overflow: hidden;
    background-color: var(--brand-dark);
    transform-origin: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Slight scale for animation */
}

/* Overlays for readability and premium feel */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 14, 6, 0.75) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* =========================================
           CUTOUT MASKS (Inverted Border Radius)
           ========================================= */

/* 1. Bottom Right Cutout (Discover) - Mobile & Desktop */
.cutout-br {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 140px;
    height: 60px;
    background-color: var(--bg-color);
    border-top-left-radius: var(--radius-cutout);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .cutout-br {
        bottom: 24px;
        right: 24px;
        width: 200px;
        height: 80px;
    }
}

/* Inverted Corners for Bottom Right */
.cutout-br::before,
.cutout-br::after {
    content: '';
    position: absolute;
    width: var(--radius-cutout);
    height: var(--radius-cutout);
    background: transparent;
    pointer-events: none;
}

/* Top side inverted corner */
.cutout-br::before {
    top: calc(var(--radius-cutout) * -1);
    right: 0;
    border-bottom-right-radius: var(--radius-cutout);
    box-shadow: 10px 10px 0 10px var(--bg-color);
}

/* Left side inverted corner */
.cutout-br::after {
    bottom: 0;
    left: calc(var(--radius-cutout) * -1);
    border-bottom-right-radius: var(--radius-cutout);
    box-shadow: 10px 10px 0 10px var(--bg-color);
}

/* 2. Left Middle Cutout (Scroll Down) - Desktop Only */
.cutout-left {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 60px;
    height: 160px;
    background-color: var(--bg-color);
    border-top-right-radius: var(--radius-cutout);
    border-bottom-right-radius: var(--radius-cutout);
    z-index: 20;
    display: none;
    /* Hidden on mobile */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .cutout-left {
        display: flex;
    }
}

/* Inverted Corners for Left Cutout */
.cutout-left::before,
.cutout-left::after {
    content: '';
    position: absolute;
    left: 0;
    width: var(--radius-cutout);
    height: var(--radius-cutout);
    background: transparent;
    pointer-events: none;
}

/* Top inverted corner */
.cutout-left::before {
    top: calc(var(--radius-cutout) * -1);
    border-bottom-left-radius: var(--radius-cutout);
    box-shadow: -10px 10px 0 10px var(--bg-color);
}

/* Bottom inverted corner */
.cutout-left::after {
    bottom: calc(var(--radius-cutout) * -1);
    border-top-left-radius: var(--radius-cutout);
    box-shadow: -10px -10px 0 10px var(--bg-color);
}

.scroll-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

/* Typography & Utility Classes */
.title-line-wrapper {
    overflow: hidden;
    display: block;
    /* Ajuste para evitar cortes en acentos altos (arriba) y "patitas" (abajo) */
    padding-top: 0.1em;
    margin-top: -0.1em;
    padding-bottom: 0.25em;
    margin-bottom: -0.25em;
}

.title-line {
    display: block;
    /* Aumentamos de 100% a 140% para que el texto baje lo suficiente y se esconda en la máscara expandida */
    transform: translateY(140%);
}

/* Hero title — responsive via clamp: ~1.75rem mobile → 4.25rem desktop */
#hero-title {
    font-size: clamp(1.75rem, 5.5vw, 4.25rem);
    line-height: 1.08;
}

/* Premium Button Hover */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-dark);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    border-radius: inherit;
}

.btn-premium:hover::before {
    top: 0;
}

.btn-outline {
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background-color: white;
    color: var(--brand-text);
}

/* Standard button sizing */
.button-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;
    min-height: 52px;
}

/* Unified label style */
.label-standard {
    color: #fff;
    background: #E97132;
    border: 1px solid rgba(233, 113, 50, 0.18);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Custom SVG Icon alignment */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
}

/* =========================================
           SPOTLIGHT CARDS (Premium Hover Effect)
           ========================================= */
.spotlight-card {
    background-color: #ffffff;
    /* Tarjetas totalmente blancas */
    border-radius: 32px;
    /* Alineado a las referencias */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 42, 84, 0.06);
    /* Borde súper sutil */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(233, 113, 50, 0.08);
}

/* Destello interno (Inner soft glow) que sigue al cursor */
.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(233, 113, 50, 0.05),
            /* Azul primario transparente */
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

/* Borde brillante (Border glow) que sigue al cursor */
.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    /* Grosor del borde brillante */
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(233, 113, 50, 0.6),
            /* Azul brillante para el borde */
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Mostrar el destello en TODAS las tarjetas cuando el contenedor es sobrevolado */
#cards-container:hover .spotlight-card::before,
#cards-container:hover .spotlight-card::after {
    opacity: 1;
}

.spotlight-content {
    position: relative;
    z-index: 10;
    /* Asegura que el texto y contenido estén sobre el brillo */
}

/* =========================================
           TOP-LEFT CUTOUT (Máscara Superior Izquierda)
           ========================================= */
.cutout-top-left {
    position: absolute;
    top: -1.5px;
    /* Cubre el borde sutil de la tarjeta */
    left: -1.5px;
    width: 96px;
    height: 96px;
    background-color: var(--bg-color);
    /* Igual al fondo de la sección */
    border-bottom-right-radius: 32px;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 24px;
    padding-left: 24px;
}

.cutout-top-left::before,
.cutout-top-left::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: transparent;
    pointer-events: none;
}

/* Curva hacia adentro (Derecha) */
.cutout-top-left::before {
    top: 0;
    right: -32px;
    border-top-left-radius: 32px;
    box-shadow: -12px -12px 0 12px var(--bg-color);
}

/* Curva hacia adentro (Abajo) */
.cutout-top-left::after {
    bottom: -32px;
    left: 0;
    border-top-left-radius: 32px;
    box-shadow: -12px -12px 0 12px var(--bg-color);
}

/* =========================================
           STACKED SERVICES SECTION
           ========================================= */
.services-stack-section {
    position: relative;
    background: var(--bg-color);
    padding: 6rem 1.5rem 6rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .services-stack-section {
        padding: 7rem 4rem 7rem;
    }
}

@media (min-width: 1024px) {
    .services-stack-section {
        padding: 8rem 6rem 8rem;
    }
}

.services-stack-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.services-stack-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    .services-stack-header {
        grid-template-columns: 0.95fr 1fr;
        align-items: end;
        margin-bottom: 6rem;
    }
}

.services-stack-eyebrow {
    color: rgba(33, 42, 84, 0.6);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.services-stack-title {
    color: var(--text-color);
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.services-stack-intro {
    color: rgba(33, 42, 84, 0.72);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.75;
    max-width: 560px;
    font-weight: 500;
}

.services-stack-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18vh;
    padding-bottom: 12vh;
}

.stack-card {
    position: sticky;
    top: 6.5rem;
    min-height: 520px;
    border-radius: 38px;
    background: #fff;
    border: 1px solid rgba(33, 42, 84, 0.07);
    box-shadow: 0 28px 90px rgba(233, 113, 50, 0.1);
    overflow: hidden;
    transform-origin: center top;
    will-change: transform;
}
.number-process-step {
    left: 2.5rem !important;
}
.stack-card:nth-child(1) {
    top: 6.5rem;
    z-index: 1;
}

.stack-card:nth-child(2) {
    top: 7.25rem;
    z-index: 2;
}

.stack-card:nth-child(3) {
    top: 8rem;
    z-index: 3;
}

.stack-card:nth-child(4) {
    top: 8.5rem;
    z-index: 4;
}

/* Imagen de fondo por tarjeta de servicio (./img/servicios/), sin overlay: se muestra tal cual */
.stack-card:nth-child(1) .stack-card-index {
    background-image: url(../img/servicios/seguridad.webp);
}

.stack-card:nth-child(2) .stack-card-index {
    background-image: url(../img/servicios/infraestructura.webp);
}

.stack-card:nth-child(3) .stack-card-index {
    background-image: url(../img/servicios/sistemas.webp);
}

.stack-card:nth-child(4) .stack-card-index {
    background-image: url(../img/servicios/operaciones.webp);
}

.stack-card-content {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 520px;
}

@media (min-width: 1024px) {
    .stack-card-content {
        grid-template-columns: 0.9fr 1.35fr;
    }
}

.stack-card-index {
    position: relative;
    padding: 2.4rem;
    background-color: #FEE8D0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 1024px) {
    .stack-card-index {
        padding: 3.6rem;
    }
}

.stack-card-number {
    font-size: clamp(5rem, 12vw, 9.5rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.24);
    font-weight: 800;
}

.stack-card-label {
    width: fit-content;
}

.stack-card-body {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .stack-card-body {
        padding: 4.2rem 5rem;
    }
}

.stack-card-title {
    color: var(--brand-primary);
    font-size: clamp(2rem, 3.15vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 700;
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.stack-card-description {
    color: rgba(33, 42, 84, 0.74);
    font-size: clamp(1.08rem, 1.5vw, 1.32rem);
    line-height: 1.75;
    max-width: 860px;
    margin-bottom: 1.5rem;
}

.stack-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.stack-card-keywords span {
    color: #E97132;
    background: rgba(233, 113, 50, 0.08);
    border: 1px solid rgba(233, 113, 50, 0.18);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stack-card-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--brand-primary);
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;
    padding: 1rem 1.5rem;
    min-height: 52px;
    border: 1px solid rgba(233, 113, 50, 0.24);
    border-radius: 999px;
    transition: all 0.35s ease;
}

.stack-card-link:hover {
    background-color: #E97132;
    border-color: #E97132;
    color: #fff;
    box-shadow: 0 14px 34px rgba(233, 113, 50, 0.26);
    transform: translateY(-2px);
}

/* =========================================
           BACK TO HOME BUTTON
           ========================================= */
.back-home-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff;
    color: #E97132;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
    box-shadow: 0 18px 42px rgba(233, 113, 50, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.92);
    transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.back-home-button.is-visible {
    pointer-events: auto;
}

.back-home-button:hover {
    background: #E97132;
    color: #fff;
    transform: translateY(0) scale(1.04);
    box-shadow: 0 22px 48px rgba(233, 113, 50, 0.32);
}

.back-home-button svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    .back-home-button {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Floating WhatsApp button — sits beside back-home-button, same reveal behavior (hidden over the hero, appears once it's scrolled past) */
.whatsapp-float-button {
    position: fixed;
    right: 92px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    z-index: 120;
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.35s ease, box-shadow 0.35s ease;
}

.whatsapp-float-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whatsapp-float-button svg {
    width: 26px;
    height: 26px;
}

.whatsapp-float-button:hover {
    background: #1ebe5a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 22px 48px rgba(37, 211, 102, 0.45);
}

@media (max-width: 767px) {
    .whatsapp-float-button {
        right: 74px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-float-button svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .stack-card {
        position: relative;
        top: auto;
        border-radius: 28px;
        min-height: auto;
    }

    .stack-card:nth-child(1),
    .stack-card:nth-child(2),
    .stack-card:nth-child(3),
    .stack-card:nth-child(4) {
        top: auto;
    }

    .stack-card-content {
        min-height: auto;
    }
}

/* =========================================
           MODAL PREMIUM STYLES
           ========================================= */
/* Estilos para el scroll interno del modal */
.modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: rgba(33, 42, 84, 0.05);
    border-radius: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(233, 113, 50, 0.3);
    border-radius: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 113, 50, 0.6);
}

.modal-service-nav {
    position: absolute;
    left: 24px;
    top: 24px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    pointer-events: none;
}

.modal-service-nav button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(233, 113, 50, 0.18);
    color: #E97132;
    line-height: 1;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(233, 113, 50, 0.28);
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .modal-service-nav {
        left: 16px;
        top: 18px;
        gap: 0.5rem;
    }

    .modal-service-nav button {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }
}

.modal-service-nav button:hover {
    background: #E97132;
    border-color: #E97132;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(233, 113, 50, 0.34);
}

.modal-service-nav button:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.modal-service-nav svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.modal-service-nav button span {
    display: none;
}

/* =========================================
        CREDIBILIDAD / CLIENTES Y PARTNERS
        ========================================= */
.credibility-section {
    position: relative;
    background: var(--bg-color);
    padding: 7rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .credibility-section {
        padding: 8rem 4rem;
    }
}

@media (min-width: 1024px) {
    .credibility-section {
        padding: 9rem 6rem;
    }
}

.credibility-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.credibility-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 4.5rem;
}

@media (min-width: 1024px) {
    .credibility-header {
        margin-bottom: 5.5rem;
    }
}

.credibility-eyebrow {
    display: block;
    color: #E97132;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.credibility-title {
    color: var(--brand-text);
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 800;
    max-width: 880px;
    margin: 0 auto;
}

.credibility-marquee-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    isolation: isolate;
}

.credibility-marquee-group {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.credibility-marquee-label {
    color: var(--brand-text);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.credibility-marquee-wrap::before,
.credibility-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18vw;
    z-index: 2;
    pointer-events: none;
}

.credibility-marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color), rgba(245, 240, 235, 0));
}

.credibility-marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-color), rgba(245, 240, 235, 0));
}

.logo-marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: max-content;
    animation: logo-marquee-left 34s linear infinite;
    will-change: transform;
}

.logo-marquee.reverse .logo-track {
    animation-name: logo-marquee-right;
    animation-duration: 40s;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-pill {
    height: 96px;
    min-width: 210px;
    padding: 0 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(233, 113, 50, 0.1);
    box-shadow: 0 18px 48px rgba(233, 113, 50, 0.055);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(33, 42, 84, 0.82);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    transition: transform 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.logo-pill:hover {
    transform: translateY(-3px);
    color: #E97132;
    border-color: rgba(233, 113, 50, 0.24);
    box-shadow: 0 24px 60px rgba(233, 113, 50, 0.12);
}

@keyframes logo-marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes logo-marquee-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .logo-pill {
        height: 78px;
        min-width: 168px;
        padding: 0 1.4rem;
        border-radius: 22px;
        font-size: 0.95rem;
    }

    .credibility-marquee-wrap::before,
    .credibility-marquee-wrap::after {
        width: 22vw;
    }
}

/* =========================================
        MANIFIESTO / PRESENTACIÓN INSTITUCIONAL
        ========================================= */
.manifesto-section {
    position: relative;
    background: var(--bg-color);
    padding: 7rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .manifesto-section {
        padding: 8rem 4rem;
    }
}

@media (min-width: 1024px) {
    .manifesto-section {
        padding: 10rem 6rem;
    }
}

.manifesto-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.manifesto-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manifesto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 240, 235, 0.95) 0%, rgba(245, 240, 235, 0.84) 100%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .manifesto-overlay {
        background: linear-gradient(90deg, var(--bg-color) 0%, rgba(245, 240, 235, 0.92) 38%, rgba(245, 240, 235, 0.16) 100%);
    }
}

.manifesto-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
}

.manifesto-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .manifesto-copy {
        align-items: flex-start;
        text-align: left;
    }
}

.manifesto-eyebrow {
    display: block;
    color: #E97132;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.manifesto-title {
    color: var(--brand-text);
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 620px;
}

.manifesto-divider {
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(233, 113, 50, 0.08), #E97132, rgba(233, 113, 50, 0.08));
}

.manifesto-subtitle {
    color: rgba(33, 42, 84, 0.72);
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.75;
    font-weight: 500;
    max-width: 560px;
}

/* =========================================
        QUIÉNES SOMOS — rediseño premium
        ========================================= */
.about-section {
    background: #F5F0EB;
    padding: 7rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-section { padding: 8rem 4rem; }
}

@media (min-width: 1024px) {
    .about-section { padding: 10rem 6rem; }
}

.about-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* --- Contenido textual --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-eyebrow {
    display: block;
    color: #E97132;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.about-title {
    color: #1E1A14;
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    line-height: 1.13;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 560px;
}

.about-line {
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(233,113,50,0.08), #E97132, rgba(233,113,50,0.08));
}

.about-copy {
    color: rgba(33,42,84,0.70);
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.78;
    font-weight: 500;
    max-width: 540px;
}

/* --- Visual de red abstracta --- */
.about-visual {
    position: relative;
    aspect-ratio: 540 / 440;
    width: 100%;
}

.about-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Hub — anillos de pulso */
@keyframes about-hub-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.25; }
    50%       { transform: scale(1.6); opacity: 0;    }
}

.about-hub-ring {
    transform-origin: 270px 220px;
    animation: about-hub-pulse 3s ease-out infinite;
}

.about-hub-ring--2 {
    transform-origin: 270px 220px;
    animation: about-hub-pulse 3s ease-out infinite;
    animation-delay: -1.5s;
}

/* Chispas — CSS Motion Path */
@keyframes about-spark-anim {
    0%   { offset-distance: 0%;   opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

.about-spark {
    fill: #E97132;
    filter: drop-shadow(0 0 5px rgba(233,113,50,1));
}

.about-spark--1 {
    offset-path: path("M 270 220 L 270 25");
    animation: about-spark-anim 2.8s ease-in-out infinite;
}

.about-spark--2 {
    offset-path: path("M 270 220 L 270 415");
    animation: about-spark-anim 2.8s ease-in-out infinite;
    animation-delay: -1.0s;
}

.about-spark--3 {
    offset-path: path("M 270 220 L 495 220");
    animation: about-spark-anim 2.8s ease-in-out infinite;
    animation-delay: -1.9s;
}

/* --- Tarjetas flotantes --- */
.about-card {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 113, 50, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1E1A14;
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(33,42,84,0.07), 0 0 0 0.5px rgba(233,113,50,0.08);
    pointer-events: none;
    user-select: none;
}

.about-card svg { color: #E97132; flex-shrink: 0; }

/* Posiciones relativas al viewBox 540×440 */
.about-card--1 { left: 50%;   top: 5.7%;  } /* Soporte y mantenimiento → nodo 270,25  */
.about-card--2 { left: 83.3%; top: 20.5%; } /* Audio y Video           → nodo 450,90  */
.about-card--3 { left: 91.7%; top: 50%;   } /* CCTV                    → nodo 495,220 */
.about-card--4 { left: 83.3%; top: 79.5%; } /* Accesos                 → nodo 450,350 */
.about-card--5 { left: 50%;   top: 94.3%; } /* Cableado estructurado   → nodo 270,415 */
.about-card--6 { left: 16.7%; top: 79.5%; } /* Automatización          → nodo 90,350  */
.about-card--7 { left: 16.7%; top: 20.5%; } /* Voz y Datos             → nodo 90,90   */

/* Flotado — cada tarjeta con distinto ritmo */
@keyframes about-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px);   }
    50%       { transform: translate(-50%, -50%) translateY(-7px);  }
}

.about-card--1 { animation: about-float 3.5s ease-in-out infinite; }
.about-card--2 { animation: about-float 4.0s ease-in-out infinite; animation-delay: -0.7s;  }
.about-card--3 { animation: about-float 3.8s ease-in-out infinite; animation-delay: -1.4s;  }
.about-card--4 { animation: about-float 4.2s ease-in-out infinite; animation-delay: -2.1s;  }
.about-card--5 { animation: about-float 3.6s ease-in-out infinite; animation-delay: -2.8s;  }
.about-card--6 { animation: about-float 3.9s ease-in-out infinite; animation-delay: -3.5s;  }
.about-card--7 { animation: about-float 3.7s ease-in-out infinite; animation-delay: -4.2s;  }

/* Mobile: escalar tarjetas en pantallas pequeñas */
@media (max-width: 640px) {
    .about-card {
        padding: 0.4rem 0.65rem;
        font-size: 0.6rem;
        border-radius: 8px;
        gap: 0.35rem;
    }
    .about-card svg { width: 11px; height: 11px; }
}

/* =========================================
        CONTACTO Y CONVERSIÓN FINAL
        ========================================= */
.contact-section {
    position: relative;
    background: linear-gradient(160deg, #120C08 0%, #1C1008 48%, #1E1410 100%);
    padding: 6rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
}
@media (min-width: 768px) { .contact-section { padding: 7rem 4rem; } }
@media (min-width: 1024px) { .contact-section { padding: 8rem 6rem; } }

.contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.contact-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
    opacity: 0.6;
}
.contact-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.5;
}
.contact-glow-a {
    width: 460px;
    height: 460px;
    top: -160px;
    right: -120px;
    background: rgba(233, 113, 50, 0.55);
}
.contact-glow-b {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -100px;
    background: rgba(253, 223, 196, 0.18);
}

.contact-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
        align-items: center;
    }
}

.contact-copy { color: #fff; }

.contact-eyebrow {
    display: block;
    color: #FDDFC4;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.contact-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 580px;
}
.contact-subtitle {
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    font-weight: 500;
    max-width: 520px;
}

.contact-benefits {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    max-width: 480px;
}
.contact-benefit {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 600;
}
.contact-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(233, 113, 50, 0.22);
    border: 1px solid rgba(233, 113, 50, 0.4);
    color: #FDDFC4;
}
.contact-benefit-icon svg { width: 13px; height: 13px; }

.contact-whatsapp-link {
    margin-top: 2.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.94rem;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.contact-whatsapp-link-icon { width: 19px; height: 19px; }
.contact-whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.contact-form-card {
    position: relative;
    border-radius: var(--radius-main);
    padding: 2.4rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 32px 80px rgba(8, 14, 38, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}
@media (min-width: 768px) { .contact-form-card { padding: 2.8rem 2.6rem; } }

.contact-form-glow {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(233, 113, 50, 0.35);
    filter: blur(80px);
    pointer-events: none;
}

.contact-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-field label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.contact-field label .required {
    color: #E97132;
    margin-left: 0.25rem;
    font-size: 0.75rem;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 14, 38, 0.32);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1.1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(233, 113, 50, 0.7);
    background: rgba(8, 14, 38, 0.5);
    box-shadow: 0 0 0 4px rgba(233, 113, 50, 0.18);
}
.contact-field select option { color: #1C1008; }
.contact-field-message textarea { resize: vertical; min-height: 96px; }

.contact-form-submit {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 1rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #1C1008;
    background: linear-gradient(120deg, #ffffff 0%, #FDDFC4 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(233, 113, 50, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.contact-form-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(233, 113, 50, 0.36); }
.contact-form-submit:disabled { cursor: default; opacity: 0.75; transform: none; }

.contact-form-note {
    min-height: 1.1rem;
    color: #FDDFC4;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.contact-form-note.is-visible          { opacity: 1; transform: translateY(0); }
.contact-form-note.is-visible.is-ok    { color: #7EFFC5; }
.contact-form-note.is-visible.is-error { color: #FF9090; }

@media (max-width: 639px) {
    .contact-benefits { grid-template-columns: 1fr; }
}

/* =========================================
        FOOTER ESTRATÉGICO
        ========================================= */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #130C08 0%, #0C0806 100%);
    overflow: hidden;
    padding: 4.5rem 1.5rem 2.5rem;
}
@media (min-width: 768px) { .site-footer { padding: 5.5rem 4rem 2.5rem; } }
@media (min-width: 1024px) { .site-footer { padding: 6rem 6rem 2.5rem; } }

.site-footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.site-footer-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 113, 50, 0.55), transparent);
}
.site-footer-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, #000 20%, transparent 75%);
    opacity: 0.5;
}

.site-footer-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.site-footer-inner.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.site-footer-top {
    display: grid;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
    .site-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .site-footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.site-footer-logo-light {
    font-weight: 300;
    opacity: 0.7;
    font-size: 0.85em;
    margin-left: 0.15rem;
}
.site-footer-tagline {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 500;
    max-width: 320px;
}
.site-footer-socials {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.site-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.site-footer-social svg { width: 18px; height: 18px; }
.site-footer-social:hover {
    background: rgba(233, 113, 50, 0.22);
    border-color: rgba(233, 113, 50, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.site-footer-heading {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.site-footer-links,
.site-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.site-footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}
.site-footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.site-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}
.site-footer-contact a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    transition: color 0.3s ease;
}
.site-footer-contact a:hover { color: #fff; }
.site-footer-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 0.05rem;
    border-radius: 10px;
    background: rgba(233, 113, 50, 0.16);
    border: 1px solid rgba(233, 113, 50, 0.32);
    color: #FDDFC4;
}
.site-footer-contact-icon svg { width: 14px; height: 14px; }

.site-footer-whatsapp {
    margin-top: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.12);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.site-footer-whatsapp svg {
    width: 17px;
    height: 17px;
    color: #25D366;
}
.site-footer-whatsapp:hover {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

.site-footer-bottom {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.site-footer-privacy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.site-footer-privacy:hover { color: #fff; }
.site-footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

@media (max-width: 639px) {
    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
}

/* =========================================
        MODAL — AVISO DE PRIVACIDAD
        ========================================= */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.privacy-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.privacy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 58, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.privacy-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(17, 24, 58, 0.28);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.privacy-modal.is-open .privacy-modal-box {
    transform: translateY(0) scale(1);
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(233, 113, 50, 0.1);
    flex-shrink: 0;
}

.privacy-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1E1A14;
    letter-spacing: -0.02em;
}

.privacy-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(33,42,84,0.5);
    background: rgba(33,42,84,0.05);
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-modal-close:hover {
    background: rgba(233, 113, 50, 0.1);
    color: #E97132;
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 1.75rem 2rem 2.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(233,113,50,0.2) transparent;
}

.privacy-modal-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1E1A14;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.privacy-modal-body p {
    font-size: 0.88rem;
    color: rgba(33,42,84,0.72);
    line-height: 1.72;
    margin-bottom: 0.75rem;
}

.privacy-modal-body ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.privacy-modal-body ul li {
    font-size: 0.88rem;
    color: rgba(33,42,84,0.72);
    line-height: 1.72;
    margin-bottom: 0.25rem;
    list-style: disc;
}

.privacy-modal-body a {
    color: #E97132;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-modal-body strong { color: #1E1A14; font-weight: 700; }

.privacy-lead {
    font-size: 0.82rem !important;
    color: rgba(33,42,84,0.45) !important;
    font-style: italic;
}

@media (max-width: 639px) {
    .privacy-modal { padding: 0; align-items: flex-end; }
    .privacy-modal-box {
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(40px);
    }
    .privacy-modal.is-open .privacy-modal-box { transform: translateY(0); }
    .privacy-modal-header,
    .privacy-modal-body { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* =========================================
           MOBILE MENU (Premium Fullscreen Overlay)
           ========================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 4, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mobile-menu-panel {
    position: absolute;
    inset: 8px;
    border-radius: var(--radius-cutout);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #1E1208 0%, #100804 100%);
    box-shadow: 0 40px 120px rgba(6, 10, 30, 0.55);
    will-change: clip-path;
}

.mobile-menu-panel .noise-overlay {
    opacity: 0.5;
}

@media (min-width: 640px) {
    .mobile-menu-panel {
        inset: 16px;
        border-radius: var(--radius-main);
    }
}

/* Close button — mirrors the brand's circular icon-button language */
.mobile-menu-close {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}

.mobile-menu-close-line {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
}

.mobile-menu-close-line:first-child { transform: rotate(45deg); }
.mobile-menu-close-line:last-child { transform: rotate(-45deg); }

/* Numbered nav links — large editorial typography, premium agency feel */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-menu-link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.94);
    overflow: hidden;
}

.mobile-menu-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-link-index {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(253, 223, 196, 0.55);
    transition: color 0.4s ease;
}

.mobile-menu-link-text {
    display: inline-block;
    font-size: clamp(2rem, 11vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #FDDFC4;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-link:hover::after,
.mobile-menu-link:focus-visible::after {
    transform: scaleX(1);
}

.mobile-menu-link:hover .mobile-menu-link-text,
.mobile-menu-link:focus-visible .mobile-menu-link-text {
    color: #FDDFC4;
    transform: translateX(14px);
}

.mobile-menu-link:hover .mobile-menu-link-index,
.mobile-menu-link:focus-visible .mobile-menu-link-index {
    color: #ffffff;
}

/* Footer — CTA + datos de contacto */
.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .button-standard {
    align-self: flex-start;
}

.mobile-menu-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mobile-menu-contact a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.mobile-menu-contact a:hover {
    color: #FDDFC4;
}

.mobile-menu-contact-sep {
    color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
    .mobile-menu-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

@media (max-height: 700px) {
    .mobile-menu-link-text {
        font-size: clamp(1.6rem, 9vw, 2.4rem);
    }

    .mobile-menu-link {
        padding: 0.4rem 0;
    }
}

/* =========================================
   PREMIUM LOADER
   ========================================= */
#site-loader {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow: hidden;
    pointer-events: all;
}

.loader-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50.5%;
    background: #E97132;
    will-change: transform;
}

.loader-panel-top  { top: 0; }
.loader-panel-bottom { bottom: 0; }

.loader-noise { display: none; }

.loader-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    pointer-events: none;
}

.loader-logo {
    height: 108px;
    width: auto;
    opacity: 0;
    transform: translateY(18px);
}

.loader-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.loader-bar-track {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    background: #E97132;
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(233, 113, 50, 0.9), 0 0 22px rgba(233, 113, 50, 0.5);
}

.loader-counter {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    min-width: 4ch;
}