/* =========================================================
   REDCOREIT
   HEADER + BASEoot
   ========================================================= */



/* =========================
   VARIABLES
   ========================= */

:root {

    --red: #e50914;
    --red-light: #ff2635;
    --red-dark: #a80710;

    --black: #080808;
    --black-soft: #111111;
    --black-card: #151515;

    --white: #ffffff;

    --gray-light: #d1d5db;
    --gray: #9ca3af;
    --gray-dark: #2a2a2a;

    --border: rgba(255, 255, 255, 0.10);

    --surface-main: #080808;
    --surface-section: #0d0d0d;
    --surface-card: #151515;
    --surface-deep: #050505;

    --text-main: #ffffff;
    --text-soft: #9ca3af;
    --text-muted: #6b7280;

    --header-bg: rgba(8, 8, 8, 0.92);

    --font-main: 'Montserrat', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --transition: 0.3s ease;

    --container: 1200px;
}



/* =====================================================
   LIGHT THEME
====================================================== */

:root[data-theme="light"] {

    --black: #f4f4f2;
    --black-soft: #ffffff;
    --black-card: #eeeeeb;

    --white: #111111;

    --gray-light: #2e3238;
    --gray: #5f646c;
    --gray-dark: #b8bcc2;

    --border: rgba(0, 0, 0, 0.12);

    --surface-main: #f3f1ed;
    --surface-section: #ffffff;
    --surface-card: #f6f5f2;
    --surface-deep: #ebe9e4;

    --text-main: #111111;
    --text-soft: #5f646c;
    --text-muted: #6b7280;

    --header-bg: rgba(243, 241, 237, 0.92);
}

/* =====================================================
   LIGHT THEME - AJUSTES DE COMPONENTES
====================================================== */
:root[data-theme="light"] .menu-toggle span {
    background: var(--red);
}

:root[data-theme="light"] .menu-toggle {
    background: #ffffff;
    border-color: rgba(229, 9, 20, 0.35);
}

:root[data-theme="light"] .main-navigation.open {
    background: #111111;
}

:root[data-theme="light"] .site-header.scrolled {
    background: rgba(15, 15, 15, 0.98);
}

:root[data-theme="light"] .header-cta {
    background: var(--red);

    color: #ffffff;

    border-color: var(--red);
}

:root[data-theme="light"] .header-cta:hover {
    background: #ffffff;

    color: #111111;

    border-color: #ffffff;
}

/* NÚMEROS DECORATIVOS */

:root[data-theme="light"] .services::after,
:root[data-theme="light"] .about::after {
    color: rgba(229, 9, 20, 0.08);
}

:root[data-theme="light"] .process::after,
:root[data-theme="light"] .contact::after {
    color: rgba(17, 17, 17, 0.07);
}


/* CONTACTO - BOX PRINCIPAL */

:root[data-theme="light"] .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.78);

    border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .contact-form-top {
    border-color: rgba(0, 0, 0, 0.12);

    color: #5f646c;
}


/* CAMPOS */

:root[data-theme="light"] .form-group {
    border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
    color: #111111;
}

:root[data-theme="light"] .form-group input::placeholder,
:root[data-theme="light"] .form-group textarea::placeholder {
    color: #8b8f96;
}

:root[data-theme="light"] .form-group select option {
    color: #111111;

    background: #ffffff;
}


/* CONSENTIMIENTO */

:root[data-theme="light"] .form-consent label {
    color: #5f646c;
}


/* MÉTODOS DE CONTACTO */

:root[data-theme="light"] .contact-method a {
    color: #111111;
}

:root[data-theme="light"] .contact-method-label,
:root[data-theme="light"] .contact-method p,
:root[data-theme="light"] .contact-signature span {
    color: #5f646c;
}

/* =====================================================
   LIGHT THEME - HOVER SERVICIOS
====================================================== */

:root[data-theme="light"] .service-card:hover {
    background: #161616;
}

:root[data-theme="light"] .service-card:hover .service-content h3,
:root[data-theme="light"] .service-card:hover .service-content h3 span {
    color: #ffffff;
}

:root[data-theme="light"] .service-card:hover .service-content p {
    color: #d1d5db;
}

:root[data-theme="light"] .service-card:hover .service-number {
    color: var(--red);
}

:root[data-theme="light"] .service-card:hover .service-arrow {
    color: #ffffff;
}

/* =====================================================
   LIGHT THEME - HEADER
====================================================== */

:root[data-theme="light"] .site-header {
    background: rgba(20, 20, 20, 0.96);

    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .nav-link {
    color: rgba(255, 255, 255, 0.65);
}

:root[data-theme="light"] .nav-link:hover {
    color: #ffffff;
}

:root[data-theme="light"] .nav-link.active {
    color: #ffffff;
}

/* =========================
   RESET
   ========================= */

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


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family: var(--font-main);

    background: var(--black);

    color: var(--white);

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
} 

/* =========================
   UTILIDADES
   ========================= */

.container {

    width: min(90%, var(--container));

    margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

/* =====================================================
   MODERN THEME TOGGLE
====================================================== */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    cursor: pointer;
}


/* TRACK */

.theme-toggle-track {
    position: relative;

    width: 58px;
    height: 30px;

    display: block;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    background: #1a1a1a;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


/* ICONOS */

.theme-toggle-sun,
.theme-toggle-moon {
    position: absolute;

    top: 50%;

    z-index: 2;

    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    font-size: 0.65rem;
    line-height: 1;

    transform: translateY(-50%);

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


.theme-toggle-sun {
    left: 3px;

    color: #ffffff;
}


.theme-toggle-moon {
    right: 3px;

    color: #ffffff;
}


/* BOLITA */

.theme-toggle-thumb {
    position: absolute;

    top: 50%;
    left: 3px;

    z-index: 1;

    width: 22px;
    height: 22px;

    box-sizing: border-box;

    border-radius: 50%;

    background: var(--red);

    transform:
        translateY(-50%)
        translateX(0);

    box-shadow:
        0 0 10px rgba(229, 9, 20, 0.28);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


/* =====================================================
   LIGHT MODE
====================================================== */

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
    background: #ffffff;

    border-color: rgba(0, 0, 0, 0.18);
}


.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    transform:
        translateY(-50%)
        translateX(28px);
}


.theme-toggle[aria-pressed="true"] .theme-toggle-sun {
    color: #111111;
}


.theme-toggle[aria-pressed="true"] .theme-toggle-moon {
    color: #111111;
}


/* HOVER */

.theme-toggle:hover .theme-toggle-track {
    border-color: var(--red);
}


.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    overflow: visible;

    background: rgba(8, 8, 8, 0.88);

    border-bottom: 1px solid transparent;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* HEADER AL HACER SCROLL */
.site-header.scrolled {
    background: rgba(8, 8, 8, 0.95);
}


/* =========================
   HEADER CONTAINER
   ========================= */

.header-container {

    position: relative;

    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}


/* =========================
   LOGO
   ========================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.logo-image {
    display: block;

    width: auto;
    height: 46px;

    object-fit: contain;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.03);
    opacity: 0.9;
}



/* =========================
   NAVEGACIÓN
   ========================= */

.main-navigation {

    display: flex;

    align-items: center;

    gap: 32px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    font-size: 0.85rem;

    font-weight: 600;

    color: var(--gray);

    transition:
        color var(--transition);
}


.nav-link:hover,
.nav-link.active {

    color: var(--white);
}


.nav-link::after {

    content: '';

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: width var(--transition);
}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;
}


/* =========================
   CTA HEADER
   ========================= */

.header-cta {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 20px;

    background: var(--red);

    color: var(--white);

    font-size: 0.8rem;

    font-weight: 700;

    border-radius: 6px;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.header-cta:hover {

    background: var(--red-light);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(229, 9, 20, 0.30);
}


/* =========================
   MENU MOBILE
   ========================= */

.menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 1px solid var(--border);

    background: var(--black-card);

    border-radius: 6px;

    cursor: pointer;
}


.menu-toggle span {

    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background: var(--white);

    transition: var(--transition);
}



/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 140px 0 100px;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(229, 9, 20, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(229, 9, 20, 0.05),
            transparent 25%
        ),
        var(--black);
}


/* LÍNEA SUPERIOR DECORATIVA */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 8, 0.82) 0%,
            rgba(8, 8, 8, 0.68) 45%,
            rgba(8, 8, 8, 0.52) 100%
        ),
        url("../assets/images/hero-server.webp")
        center / cover no-repeat;

    opacity: 0.55;
    filter: grayscale(1) contrast(1.15);

    pointer-events: none;
    z-index: 0;
}

:root[data-theme="light"] .hero::before {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(255, 255, 255, 0.56) 45%,
            rgba(255, 255, 255, 0.42) 100%
        ),
        url("../assets/images/hero-server.webp")
        center / cover no-repeat;

    opacity: 0.55;
    filter: grayscale(1) contrast(1.05);
}

/* =========================
   GRID HERO
   ========================= */

.hero-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;
}

/* =====================================================
   HERO MOBILE - TECH CARDS
====================================================== */

@media (max-width: 600px) {

    .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
    }

    .hero-content {
    display: contents;
    }

    .hero-label {
    grid-row: 1;
    }

    .hero-title {
    grid-row: 2;
   }

.hero-visual {
    grid-row: 3;

    width: min(100%, 340px);
    max-width: 280px;

    margin: 10px auto 28px;

    justify-self: center;
}

.hero-description {
    grid-row: 4;
    margin-top: 0;
}

.hero-actions {
    grid-row: 5;
}

.hero-features {
    grid-row: 6;
}

    .core-center {
        width: 140px;
        height: 140px;
    }

    .tech-coordinate {
        font-size: 0.48rem;
    }


.hero::before {
    opacity: 0.38;
    background-position: center;
}

}

/* =========================
   CONTENIDO
   ========================= */

.hero-content {
    max-width: 680px;
}


/* =========================
   LABEL
   ========================= */

.hero-label {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;

    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.025);

    font-family: var(--font-code);

    font-size: 0.68rem;

    font-weight: 600;

    letter-spacing: 1.4px;

    color: var(--gray-light);
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--red);

    box-shadow:
        0 0 10px rgba(229, 9, 20, 0.9);
}


/* =========================
   TITULO
   ========================= */

.hero-title {
    max-width: 800px;

    margin-bottom: 25px;

    font-size: clamp(3rem, 5.8vw, 5.7rem);

    font-weight: 800;

    line-height: 0.98;

    letter-spacing: -4px;
}


.hero-title span {
    display: block;

    color: var(--red);
}


/* =========================
   DESCRIPCIÓN
   ========================= */

.hero-description {
    max-width: 610px;

    margin-bottom: 35px;

    font-size: 1rem;

    line-height: 1.8;

    color: var(--gray-light);
}


/* =========================
   BOTONES
   ========================= */

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 45px;
}


.btn {
    min-height: 52px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 0 22px;

    border: 1px solid transparent;

    border-radius: 5px;

    font-size: 0.78rem;

    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}


.btn-primary {
    background: var(--red);

    color: var(--white);
}


.btn-primary:hover {
    background: var(--red-light);

    transform: translateY(-3px);

    box-shadow:
        0 12px 35px rgba(229, 9, 20, 0.25);
}


.btn-primary span {
    font-size: 1.1rem;

    transition: transform var(--transition);
}


.btn-primary:hover span {
    transform: translateX(4px);
}


.btn-secondary {
    border-color: var(--border);

    background: rgba(255, 255, 255, 0.025);

    color: var(--white);
}


.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.06);

    transform: translateY(-3px);
}


/* =========================
   FEATURES
   ========================= */

.hero-features {
    display: flex;

    flex-wrap: wrap;

    gap: 28px;
}


.hero-features span {
    font-family: var(--font-code);

    font-size: 0.68rem;

    letter-spacing: 0.7px;

    color: var(--gray);
}


.hero-features strong {
    margin-right: 5px;

    color: var(--red);

    font-weight: 600;
}


/* =====================================================
   LIGHT THEME - HERO
====================================================== */

/* Grid técnico */

:root[data-theme="light"] .tech-grid {
    opacity: 0.10;

    background-image:
        linear-gradient(
            rgba(17, 17, 17, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(17, 17, 17, 0.12) 1px,
            transparent 1px
        );
}


/* ÓRBITAS */

:root[data-theme="light"] .core-orbit {
    border-color: rgba(17, 17, 17, 0.18);
}


/* LOGO CENTRAL */

:root[data-theme="light"] .core-logo {
    filter:
        brightness(0)
        drop-shadow(
            0 0 18px rgba(229, 9, 20, 0.22)
        );
}


/* HOVER DEL LOGO */

:root[data-theme="light"] .hero-visual:hover .core-logo {
    filter:
        brightness(0)
        drop-shadow(
            0 0 22px rgba(229, 9, 20, 0.30)
        );
}


/* NÚCLEO / GLOW */

:root[data-theme="light"] .core-center {
    background:
        radial-gradient(
            circle,
            rgba(229, 9, 20, 0.16),
            transparent 65%
        );

    filter:
        drop-shadow(
            0 0 30px rgba(229, 9, 20, 0.18)
        );
}


/* COORDENADAS */

:root[data-theme="light"] .tech-coordinate {
    color: rgba(17, 17, 17, 0.38);
}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;

    width: min(100%, 500px);

    aspect-ratio: 1;

    justify-self: end;

    display: grid;

    place-items: center;
}


/* =========================
   GRID TECNOLÓGICO
   ========================= */

.tech-grid {
    position: absolute;

    inset: 0;

    opacity: 0.16;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        );

    background-size: 35px 35px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 70%
        );
}


/* =========================
   ORBITAS
   ========================= */

.core-orbit {
    position: absolute;

    width: 62%;
    height: 62%;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 50%;
}


.orbit-one {
    transform: rotate(0deg) scaleY(0.45);
}


.orbit-two {
    transform: rotate(60deg) scaleY(0.45);
}


.orbit-three {
    transform: rotate(-60deg) scaleY(0.45);
}


/* =========================
   NÚCLEO
   ========================= */

.core-center {
    position: relative;

    z-index: 3;

    width: 180px;
    height: 180px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(229, 9, 20, 0.12),
            transparent 65%
        );

    filter:
        drop-shadow(
            0 0 30px rgba(229, 9, 20, 0.15)
        );
}


.core-logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}


.hero-visual:hover .core-logo {
    transform: scale(1.05);

    filter:
        drop-shadow(
            0 0 18px rgba(229, 9, 20, 0.25)
        );
}
/* =====================================================
   HERO - TABLET / MOBILE TECH CARDS
====================================================== */

@media (max-width: 768px) {

 .tech-card {
        display: none;
    }
}

/* =========================
   TECH CARDS
   ========================= */
/* CARDS TÉCNICAS DEL HERO */

:root[data-theme="light"] .tech-card {
    background: rgba(255, 255, 255, 0.94);

    border-color: rgba(0, 0, 0, 0.14);

    color: #111111;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .tech-card span {
    color: #6b7078;
}

:root[data-theme="light"] .tech-card strong {
    color: #111111;
}

:root[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.16);

    background: rgba(255, 255, 255, 0.65);

    color: #111111;
}

:root[data-theme="light"] .btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.30);

    background: #ffffff;

    color: #111111;
}
.tech-card {
    position: absolute;

    z-index: 5;

    min-width: 145px;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: rgba(17, 17, 17, 0.85);

    backdrop-filter: blur(10px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}


.tech-card-one {
    top: 21%;
    right: 0;
}


.tech-card-two {
    bottom: 19%;
    left: 0;
}


.tech-card-label {
    display: block;

    margin-bottom: 3px;

    font-family: var(--font-code);

    font-size: 0.55rem;

    letter-spacing: 1.3px;

    color: var(--gray);
}


.tech-card strong {
    font-family: var(--font-code);

    font-size: 0.68rem;

    color: var(--white);
}


.online-dot {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-left: 5px;

    border-radius: 50%;

    background: #41d17d;

    box-shadow:
        0 0 8px rgba(65, 209, 125, 0.7);
}


/* =========================
   COORDENADAS
   ========================= */

.tech-coordinate {
    position: absolute;

    font-family: var(--font-code);

    font-size: 0.55rem;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.25);
}


.coordinate-one {
    top: 5%;
    left: 10%;
}


.coordinate-two {
    right: 6%;
    bottom: 5%;
}


/* =========================
   SCROLL INDICATOR
   ========================= */

.scroll-indicator {
    position: absolute;

    z-index: 5;

    bottom: 25px;
    left: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    transform: translateX(-50%);

    font-family: var(--font-code);

    font-size: 0.52rem;

    letter-spacing: 2px;

    color: var(--gray);
}


.scroll-line {
    position: relative;

    width: 1px;
    height: 30px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.12);
}


.scroll-line::after {
    content: '';

    position: absolute;

    top: -100%;
    left: 0;

    width: 100%;
    height: 100%;

    background: var(--red);

    animation: scrollLine 2s infinite;
}


@keyframes scrollLine {

    0% {
        top: -100%;
    }

    50% {
        top: 0;
    }

    100% {
        top: 100%;
    }

}


/* =========================================================
   SERVICIOS
   ========================================================= */

.services {
    position: relative;

    padding: 120px 0;

    background:
        linear-gradient(
            135deg,
            var(--surface-section) 0%,
            var(--surface-main) 55%,
            var(--surface-section) 100%
        );

    border-top: 1px solid var(--border);

    overflow: hidden;

    scroll-margin-top: 90px;
}


/* Luz roja ambiental */

.services::after {
    content: "01";

    position: absolute;

    top: 40px;
    right: 3%;

    font-family: var(--font-code);

    font-size: clamp(9rem, 20vw, 19rem);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.08em;

    color: rgba(229, 9, 20, 0.11);

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.section-header {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    align-items: end;
    gap: 70px;

    margin-bottom: 60px;
}


.section-label {
    display: inline-block;

    margin-bottom: 18px;

    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 2px;

    color: var(--red);
}


.section-header h2 {
    max-width: 750px;

    font-size: clamp(2.6rem, 4.5vw, 4.6rem);
    font-weight: 800;

    line-height: 1.03;
    letter-spacing: -3px;
}


.section-header h2 span {
    display: block;
    color: var(--gray);
}


.section-description {
    max-width: 480px;

    color: var(--gray);

    font-size: 0.9rem;
    line-height: 1.8;
}


/* =========================================================
   GRID DE SERVICIOS
   ========================================================= */

.services-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}


/* =========================================================
   CARD
   ========================================================= */

.service-card {
    position: relative;

    min-height: 380px;

    display: flex;
    flex-direction: column;

    padding: 40px;

    overflow: hidden;

    background: var(--surface-card);

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}


/* Línea roja que aparece arriba */

.service-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--red);

    transition: width 0.4s ease;
}


/* Glow rojo */

.service-card::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -120px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(229, 9, 20, 0.12);

    filter: blur(70px);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.4s ease;
}


/* HOVER */

.service-card:hover {
    background: #151515;
    transform: translateY(-5px);
}


.service-card:hover::before {
    width: 100%;
}


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


/* =========================================================
   CABECERA DE CADA CARD
   ========================================================= */

.service-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 65px;
}


.service-number {
    font-family: var(--font-code);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 1px;

    color: var(--red-light);
}


/* Flecha */

.service-arrow {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--gray);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


.service-card:hover .service-arrow {
    transform: rotate(45deg);

    background: var(--red);
    border-color: var(--red);

    color: var(--white);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.service-content {
    position: relative;
    z-index: 2;
}


.service-content h3 {
    margin-bottom: 20px;

    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    font-weight: 700;

    line-height: 1.05;
    letter-spacing: -1.5px;

    color: var(--white);
}


.service-content h3 span {
    color: var(--gray);
}


.service-content p {
    max-width: 520px;

    color: var(--gray);

    font-size: 0.86rem;
    line-height: 1.85;
}


/* =========================================================
   TAG INFERIOR
   ========================================================= */

.service-tag {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 35px;

    font-family: var(--font-code);

    font-size: 0.57rem;
    font-weight: 600;

    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.5);
}


   @media (max-width: 900px) {

  .main-navigation {
        position: absolute;

        top: 80px;
        left: 0;
        right: 0;

        width: 100%;

        padding: 25px;

        display: none;

        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        background: rgba(8, 8, 8, 0.98);

        border-bottom: 1px solid var(--border);

        z-index: 1000;
    }


    .header-cta {

        display: none;
    }


    .menu-toggle {

        display: block;
    }


    .main-navigation.open {
        display: flex;
    }


}

@media (max-width: 600px) {

    .header-container {

        min-height: 70px;
    }


    .main-navigation {

        top: 70px;
    }


     .logo-image {
        
        height: 38px;
    }


}
/* =========================================================
   HERO - ANIMACIONES DE ENTRADA
   ========================================================= */

.hero-label,
.hero-title,
.hero-description,
.hero-actions,
.hero-features {
    opacity: 0;
    transform: translateY(25px);
}

.hero-visual {
    opacity: 0;
    transform: translateX(35px);
}


/* Cuando JavaScript agrega la clase hero-loaded */

.hero.hero-loaded .hero-label {
    animation: fadeUp 0.6s ease forwards;
}

.hero.hero-loaded .hero-title {
    animation: fadeUp 2s ease 1s forwards;
}

.hero.hero-loaded .hero-description {
    animation: fadeUp 0.7s ease 0.20s forwards;
}

.hero.hero-loaded .hero-actions {
    animation: fadeUp 0.7s ease 0.30s forwards;
}

.hero.hero-loaded .hero-features {
    animation: fadeUp 0.7s ease 0.40s forwards;
}

.hero.hero-loaded .hero-visual {
    animation: fadeRight 0.9s ease 0.20s forwards;
}


/* =========================
   KEYFRAMES
   ========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

}

@keyframes fadeRight {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

/* =========================================================
   SERVICIOS - RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .section-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-description {
        max-width: 600px;
    }

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

    .service-card {
        min-height: 340px;
    }

}


@media (max-width: 600px) {

    .services {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: clamp(2.3rem, 11vw, 3.2rem);
        letter-spacing: -2px;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.75;
    }

    .service-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .service-top {
        margin-bottom: 32px;
    }

    .service-content h3 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .service-content p {
        font-size: 0.82rem;
    }

    .service-tag {
        padding-top: 25px;
    }

}

/* =========================================================
   PROCESO
   ========================================================= */

.process {
    position: relative;

    padding: 130px 0;

    background:
        linear-gradient(
            180deg,
            var(--surface-main) 0%,
            var(--surface-deep) 100%
        );

    border-top: 1px solid var(--border);

    overflow: hidden;

    scroll-margin-top: 90px;
}


/* Luz ambiental */

.process::after {
    content: "02";

    position: absolute;

    top: 50px;
    left: 3%;

    font-family: var(--font-code);

    font-size: clamp(9rem, 20vw, 19rem);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.08em;

    color: rgba(255, 255, 255, 0.055);

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.process-header {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: end;

    gap: 70px;

    margin-bottom: 100px;
}


.process-heading h2 {
    max-width: 700px;

    font-size: clamp(2.8rem, 5vw, 5rem);

    line-height: 0.98;

    letter-spacing: -4px;

    font-weight: 800;

    color: var(--white);
}


.process-heading h2 span {
    display: block;

    color: var(--gray);
}


.process-description {
    max-width: 470px;

    color: var(--gray);

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.process-timeline {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}


/* Línea horizontal */

.process-timeline::before {
    content: "";

    position: absolute;

    top: 27px;

    left: 0;
    right: 0;

    height: 1px;

    background: var(--border);
}


/* Línea roja */

.process-timeline::after {
    content: "";

    position: absolute;

    top: 27px;

    left: 0;

    width: 25%;
    height: 1px;

    background: var(--red);

    box-shadow:
        0 0 12px rgba(229, 9, 20, 0.5);
}


/* =========================================================
   PASO
   ========================================================= */

.process-step {
    position: relative;

    padding-right: 40px;
}


/* =========================================================
   MARCADOR
   ========================================================= */

.process-marker {
    position: relative;

    z-index: 3;

    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    margin-bottom: 50px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--black-soft);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.process-marker span {
    font-family: var(--font-code);

    font-size: 0.65rem;

    font-weight: 600;

    color: var(--gray);

    transition: color 0.3s ease;
}


/* Primer punto activo */

.process-step:first-child .process-marker {
    background: var(--red);

    border-color: var(--red);

    box-shadow:
        0 0 25px rgba(229, 9, 20, 0.25);
}


.process-step:first-child .process-marker span {
    color: var(--white);
}


/* =========================================================
   HOVER
   ========================================================= */

.process-step:hover .process-marker {
    transform: scale(1.08);

    background: var(--red);

    border-color: var(--red);

    box-shadow:
        0 0 30px rgba(229, 9, 20, 0.25);
}


.process-step:hover .process-marker span {
    color: var(--white);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.process-content {
    position: relative;
}


.process-code {
    display: block;

    margin-bottom: 18px;

    font-family: var(--font-code);

    font-size: 0.55rem;

    font-weight: 600;

    letter-spacing: 2px;

    color: var(--red);
}


.process-content h3 {
    margin-bottom: 18px;

    font-size: clamp(1.5rem, 2vw, 2rem);

    font-weight: 700;

    letter-spacing: -1px;

    color: var(--white);
}


.process-content p {
    max-width: 270px;

    font-size: 0.8rem;

    line-height: 1.8;

    color: var(--gray);
}


/* =========================================================
   FOOTER DEL PROCESO
   ========================================================= */

.process-footer {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 100px;

    padding-top: 30px;

    border-top: 1px solid var(--border);
}


.process-footer-code {
    font-family: var(--font-code);

    font-size: 0.55rem;

    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.3);
}


.process-footer p {
    font-family: var(--font-code);

    font-size: 0.7rem;

    letter-spacing: 1px;

    color: var(--gray);
}


.process-footer p span {
    color: var(--red);
}


/* =========================================================
   PROCESO RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .process {
        padding: 100px 0;
    }


    .process-header {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 70px;
    }


    .process-description {
        max-width: 600px;
    }


    .process-timeline {
        grid-template-columns: repeat(2, 1fr);

        row-gap: 70px;
    }


    .process-timeline::before,
    .process-timeline::after {
        display: none;
    }


    .process-step {
        padding-right: 30px;
    }


    .process-marker {
        margin-bottom: 30px;
    }

}

@media (hover: none) and (pointer: coarse) {

    .service-card:hover {
        transform: none;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .process {
        padding: 80px 0;
    }


    .process-header {
        margin-bottom: 60px;
    }


    .process-heading h2 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);

        letter-spacing: -2.5px;
    }


    .process-description {
        font-size: 0.85rem;
    }


    .process-timeline {
        display: block;
    }


    .process-step {
        position: relative;

        display: grid;

        grid-template-columns: 55px 1fr;

        gap: 22px;

        padding: 0 0 55px 0;
    }


    /* Línea vertical mobile */

    .process-step:not(:last-child)::after {
        content: "";

        position: absolute;

        top: 55px;
        bottom: 0;

        left: 27px;

        width: 1px;

        background: var(--border);
    }


    .process-marker {
        margin: 0;
    }


    .process-content {
        padding-top: 5px;
    }


    .process-content h3 {
        font-size: 1.6rem;
    }


    .process-content p {
        max-width: none;

        font-size: 0.82rem;
    }


    .process-footer {
        display: block;

        margin-top: 20px;
    }


    .process-footer-code {
        display: block;

        margin-bottom: 15px;
    }

}

/* =========================================================
   NOSOTROS
   ========================================================= */

.about {
    position: relative;

    padding: 130px 0;

    background:
        linear-gradient(
            135deg,
            var(--surface-section) 0%,
            var(--surface-main) 55%,
            var(--surface-section) 100%
        );

    border-top: 1px solid var(--border);

    overflow: hidden;

    scroll-margin-top: 90px;
}


/* Glow rojo */

.about::after {
    content: "03";

    position: absolute;

    top: 55px;
    right: 4%;

    font-family: var(--font-code);

    font-size: clamp(9rem, 20vw, 19rem);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.08em;

    color: rgba(229, 9, 20, 0.09);

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.about-header {
    position: relative;

    z-index: 2;

    margin-bottom: 80px;
}


.about-heading h2 {
    max-width: 900px;

    font-size: clamp(2.8rem, 5vw, 5rem);

    line-height: 1;

    letter-spacing: -4px;

    font-weight: 800;

    color: var(--white);
}


.about-heading h2 span {
    display: block;

    color: var(--gray);
}


/* =========================================================
   GRID PRINCIPAL
   ========================================================= */

.about-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 100px;

    margin-bottom: 110px;
}


/* =========================================================
   TEXTO
   ========================================================= */

.about-content {
    max-width: 560px;
}


.about-content p {
    margin-bottom: 25px;

    color: var(--gray);

    font-size: 0.88rem;

    line-height: 1.9;
}


.about-content .about-lead {
    margin-bottom: 30px;

    color: var(--white);

    font-size: 1.15rem;

    line-height: 1.7;
}


/* =========================================================
   FIRMA
   ========================================================= */

.about-signature {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 45px;
}


.about-signature strong {
    display: block;

    margin-bottom: 4px;

    color: var(--white);

    font-size: 0.8rem;
}


.about-signature div > span {
    font-family: var(--font-code);

    color: rgba(255, 255, 255, 0.3);

    font-size: 0.5rem;

    letter-spacing: 1.5px;
}


/* =========================================================
   VISUAL REDCORE
   ========================================================= */

.about-visual {
    position: relative;

    min-height: 520px;
    border-radius: 14px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.015),
            transparent
        );

    overflow: hidden;
}

.about-team-image {
    width: 100%;
    height: 100%;
    min-height: 520px;

    display: block;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.75)
        contrast(1.05)
        brightness(0.82);
}


.about-visual .orbit-one {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.about-visual .orbit-two {
    transform:
        translate(-50%, -50%)
        rotate(60deg);
}

.about-visual .orbit-three {
    transform:
        translate(-50%, -50%)
        rotate(120deg);
}

/* Grid técnico de fondo */

.about-visual::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.13;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;
}

.about-visual::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8, 8, 8, 0.04),
            rgba(8, 8, 8, 0.24)
        );

    pointer-events: none;
    z-index: 2;
}


/* =========================================================
   VALORES
   ========================================================= */

.about-values {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-column: 1 / -1;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    
}
.about-value {
    position: relative;

    padding: 45px 40px;
    
    border-right: 1px solid var(--border);

    transition:
        background 0.3s ease;
}


.about-value:last-child {
    border-right: 0;
}


.about-value:hover {
    background: rgba(255, 255, 255, 0.02);
}


.about-value-number {
    display: block;

    margin-bottom: 45px;

    font-family: var(--font-code);

    color: var(--red);

    font-size: 0.6rem;

    font-weight: 600;

    letter-spacing: 1px;
}


.about-value h3 {
    margin-bottom: 15px;

    color: var(--white);

    font-size: 1.4rem;

    letter-spacing: -0.5px;
}


.about-value p {
    max-width: 300px;

    color: var(--gray);

    font-size: 0.8rem;

    line-height: 1.8;
}


/* =========================================================
   NOSOTROS — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .about {
        padding: 100px 0;
    }

}


/* =========================================================
   FIX NOSOTROS 
   ========================================================= */

/* Contenedor general */

.about .container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}


/* Título */

.about-header {
    margin-bottom: 70px;
}

.about-heading h2 {
    max-width: 850px;
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);

    gap: 80px;

    align-items: center;

    margin-bottom: 90px;
}


.about-content {
    width: 100%;
    max-width: 560px;
}


.about-content p {
    max-width: 540px;
}


/* =========================================================
   VISUAL
   ========================================================= */

.about-visual {
    width: 100%;

    min-height: 450px;

    justify-self: stretch;
}


/* =========================================================
   VALORES
   ========================================================= */

.about-values {
    width: 100%;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin-top: 0;
}


.about-value {
    min-height: 330px;

    padding: 42px 36px;
}


.about-value-number {
    margin-bottom: 42px;
}


.about-value h3 {
    font-size: 1.35rem;
}


.about-value p {
    width: 100%;
    max-width: 280px;

    font-size: 0.82rem;
    line-height: 1.75;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .about .container {
        width: min(100% - 40px, 720px);
    }

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

        gap: 55px;

        margin-bottom: 70px;
    }

    .about-content {
        max-width: 650px;
    }

    .about-visual {
        width: 100%;
        min-height: 430px;
    }

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

    .about-value {
        min-height: auto;

        border-right: 0;

        padding: 35px 30px;
    }

    .about-value-number {
        margin-bottom: 25px;
    }

    .about-value p {
        max-width: 520px;
    }

}

/* =========================================================
   NOSOTROS - MOBILE
   ========================================================= */

@media (max-width: 600px) {

       .about {
        padding: 80px 0;
    }


    .about-heading h2 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);

        letter-spacing: -2.5px;
    }

    .about-content .about-lead {
        font-size: 1rem;
    }


    .about-content p {
        font-size: 0.84rem;
    }


    .about-value-number {
        margin-bottom: 30px;
    }


    .about .container {
        width: calc(100% - 40px);
    }

    .about-header {
        margin-bottom: 45px;
    }

    .about-grid {
        gap: 45px;
        margin-bottom: 60px;
    }

    .about-visual {
        min-height: 350px;
    }

    .about-values {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .about-value {
        width: 100%;
        min-width: 0;
        min-height: auto;

        padding: 30px 24px;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .about-value:last-child {
        border-bottom: 0;
    }

    .about-value p {
        width: 100%;
        max-width: none;
    }

}


/* =====================================================
   04 // CONTACTO
====================================================== */

.contact {
    position: relative;

    padding: 130px 0;

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(229, 9, 20, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(229, 9, 20, 0.035),
            transparent 28%
        ),
        var(--surface-main);

    overflow: hidden;

    scroll-margin-top: 90px;
}

.contact-container {
    position: relative;
    z-index: 2;
}


/* =====================================================
   HEADER
====================================================== */

.contact-header {
    max-width: 900px;

    margin-bottom: 80px;
}

.contact .section-code {
    display: block;

    margin-bottom: 24px;

    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.22em;

    color: var(--red);
}

.contact-title {
    margin: 0;

    max-width: 850px;

    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;

    line-height: 0.95;
    letter-spacing: -0.05em;

    color: var(--white);
}

.contact-title span {
    display: block;

    color: #9ca3af;
}

.contact::after {
    content: "04";

    position: absolute;

    top: 40px;
    left: 3%;

    font-family: var(--font-code);

    font-size: clamp(9rem, 20vw, 19rem);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.08em;

    color: rgba(255, 255, 255, 0.05);

    pointer-events: none;

    user-select: none;
}

.contact-container {
    position: relative;
    z-index: 2;
}


/* =====================================================
   GRID PRINCIPAL
====================================================== */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(500px, 1.2fr);

    gap: 100px;

    align-items: start;
}


/* =====================================================
   INFORMACIÓN
====================================================== */

.contact-info h3 {
    max-width: 480px;

    margin: 0 0 28px;

    font-size: 1.35rem;
    font-weight: 600;

    line-height: 1.5;

    color: var(--white);
}

.contact-description {
    max-width: 470px;

    margin: 0 0 18px;

    font-size: 0.88rem;
    line-height: 1.8;

    color: var(--text-muted);
}


/* =====================================================
   MÉTODOS
====================================================== */

.contact-methods {
    max-width: 470px;

    margin-top: 50px;

    border-top: 1px solid var(--border);
}

.contact-method {
    position: relative;

    padding: 28px 0;

    border-bottom: 1px solid var(--border);
}

.contact-method:first-child::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 0;

    width: 45px;
    height: 1px;

    background: var(--red);
}

.contact-method-label {
    display: block;

    margin-bottom: 12px;

    font-family: var(--font-code);
    font-size: 0.58rem;

    letter-spacing: 0.18em;

    color: var(--text-muted);
}

.contact-method a {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 10px;

    font-size: 1rem;
    font-weight: 700;

    color: var(--white);

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.contact-method a strong {
    color: var(--red);

    transition: transform 0.2s ease;
}

.contact-method a:hover {
    color: var(--red);

    padding-left: 4px;
}

.contact-method a:hover strong {
    transform: translateX(4px);
}

.contact-method p {
    max-width: 360px;

    margin: 0;

    font-size: 0.78rem;
    line-height: 1.7;

    color: var(--text-muted);
}


/* =====================================================
   FIRMA
====================================================== */

.contact-signature {
    margin-top: 35px;
}

.contact-signature > span {
    display: block;

    margin-bottom: 12px;

    font-family: var(--font-code);
    font-size: 0.55rem;

    letter-spacing: 0.2em;

    color: var(--text-muted);
}

.contact-signature p {
    margin: 0;

    font-family: var(--font-code);
    font-size: 0.68rem;

    letter-spacing: 0.08em;

    color: #6b7280;
}

.contact-signature strong {
    color: var(--red);
}


/* =====================================================
   FORMULARIO
====================================================== */

.contact-form-wrapper {
    position: relative;

    border: 1px solid var(--border);

    background: rgba(13, 13, 13, 0.8);
}


/* CABECERA FORM */

.contact-form-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px 24px;

    border-bottom: 1px solid var(--border);

    font-family: var(--font-code);
    font-size: 0.58rem;

    letter-spacing: 0.18em;

    color: var(--text-muted);
}

.contact-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--white);
}


/* =====================================================
   CAMPOS
====================================================== */

.contact-form {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    padding: 10px 30px 30px;
}

.form-group {
    display: flex;

    flex-direction: column;

    padding: 25px 20px;

    border-bottom: 1px solid var(--border);
}

.form-group:nth-child(odd):not(.form-group-full) {
    border-right: 1px solid var(--border);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 12px;

    font-family: var(--font-code);
    font-size: 0.58rem;
    font-weight: 600;

    letter-spacing: 0.18em;

    color: #6b7280;
}


/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 4px 0;

    border: 0;
    outline: 0;

    background: transparent;

    font: inherit;

    font-size: 0.9rem;
    font-weight: 500;

    color: var(--white);
}

.form-group textarea {
    min-height: 120px;

    resize: vertical;

    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555b65;
    font-weight: 500;
}


/* SELECT */

.form-group select {
    cursor: pointer;
}

.form-group select option {
    color: var(--white);

    background: #111;
}


/* FOCUS */

.form-group:focus-within label {
    color: var(--red);
}

.form-group:focus-within {
    background:
        rgba(237, 10, 25, 0.02);
}


/* =====================================================
   CONSENTIMIENTO
====================================================== */

.form-consent {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 25px 20px;
}

.form-consent input {
    width: 15px;
    height: 15px;

    margin-top: 2px;

    accent-color: var(--red);
}

.form-consent label {
    max-width: 450px;

    font-size: 0.72rem;
    line-height: 1.6;

    color: var(--text-muted);

    cursor: pointer;
}


/* =====================================================
   BOTÓN
====================================================== */

.form-submit {
    padding: 0 20px 20px;
}

.contact-submit {
    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px 22px;

    border: 1px solid var(--red);

    background: var(--red);

    color: var(--white);

    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.contact-submit:hover {
    background: transparent;

    color: var(--white);
}

.contact-submit span:last-child {
    font-size: 1rem;

    transition: transform 0.25s ease;
}

.contact-submit:hover span:last-child {
    transform: translateX(5px);
}

.contact-submit:active {
    transform: scale(0.99);
}

/* =====================================================
   VALIDACIÓN
====================================================== */

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    color: var(--white);

    box-shadow:
        inset 0 -1px 0 var(--red);
}

.form-group:has(.is-invalid) label {
    color: var(--red);
}

.form-consent input.is-invalid {
    outline: 1px solid var(--red);
    outline-offset: 3px;
}

/* =====================================================
   FEEDBACK
====================================================== */

.form-feedback {
    min-height: 20px;

    margin: 0;

    padding: 0 20px;

    font-size: 0.75rem;

    color: var(--text-muted);
}

.form-feedback.success {
    color: #35e88d;
}

.form-feedback.error {
    color: var(--red);
}


/* =====================================================
   TABLET
====================================================== */

@media (max-width: 1000px) {

    .contact {
        padding: 100px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .contact-info h3,
    .contact-description,
    .contact-methods {
        max-width: 650px;
    }

}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .contact {
        padding: 85px 0;
    }

    .contact-header {
        margin-bottom: 55px;
    }

    .contact-title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);

        line-height: 0.98;
    }

    .contact-grid {
        gap: 55px;
    }

    .contact-info h3 {
        font-size: 1.15rem;
    }

    .contact-description {
        font-size: 0.82rem;
    }


    /* Métodos */

    .contact-methods {
        margin-top: 40px;
    }

    .contact-method {
        padding: 25px 0;
    }

    .contact-method a {
        font-size: 0.9rem;
    }


    /* Form */

    .contact-form-top {
        padding: 16px 18px;
    }

    .contact-form {
        grid-template-columns: 1fr;

        padding:
            5px
            18px
            20px;
    }

    .form-group {
        grid-column: 1 / -1;
        font-size: 0.6rem;
        font-weight: 600;

        padding:
            22px
            5px;

        border-right: 0 !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.88rem;
        font-weight: 500;
    }
    

    .form-consent {
        padding:
            22px
            5px;
    }

    .form-submit {
        padding:
            0
            5px
            15px;
    }

    .form-feedback {
        padding:
            0
            5px;
    }

}

@media (max-width: 600px) {

    .services::after,
    .process::after,
    .about::after,
    .contact::after {
        top: 35px;

        font-size: 8rem;

        opacity: 0.75;
    }

}

/* =====================================================
   CTA FINAL
====================================================== */

.final-cta {
    position: relative;

    padding: 130px 0;

    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(229, 9, 20, 0.08),
            transparent 35%
        ),
        var(--surface-deep);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    overflow: hidden;
}

.final-cta-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(280px, 0.7fr);

    gap: 90px;

    align-items: center;
}


/* CONTENIDO */

.final-cta-code {
    display: block;

    margin-bottom: 25px;

    font-family: var(--font-code);
    font-size: 0.6rem;
    font-weight: 600;

    letter-spacing: 0.2em;

    color: var(--red);
}

.final-cta-title {
    max-width: 850px;

    margin: 0 0 30px;

    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;

    line-height: 0.95;
    letter-spacing: -0.05em;

    color: var(--text-main);
}

.final-cta-title span {
    display: block;

    color: var(--text-soft);
}

.final-cta-description {
    max-width: 600px;

    margin: 0 0 40px;

    font-size: 0.95rem;
    line-height: 1.8;

    color: var(--text-soft);
}


/* BOTONES */

.final-cta-actions {
    display: flex;

    align-items: center;

    gap: 25px;

    flex-wrap: wrap;
}

.final-cta-primary {
    display: inline-flex;

    justify-content: space-between;
    align-items: center;

    min-width: 220px;

    padding: 18px 22px;

    background: var(--red);

    border: 1px solid var(--red);

    color: #ffffff;

    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.final-cta-primary:hover {
    background: transparent;

    color: var(--text-main);

    border-color: var(--red);

    transform: translateY(-2px);
}

.final-cta-primary span:last-child {
    transition: transform 0.2s ease;
}

.final-cta-primary:hover span:last-child {
    transform: translateX(5px);
}

.final-cta-secondary {
    position: relative;

    color: var(--text-main);

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 600;
}

.final-cta-secondary::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 1px;

    background: var(--red);

    transform: scaleX(0.35);
    transform-origin: left;

    transition: transform 0.2s ease;
}

.final-cta-secondary:hover::after {
    transform: scaleX(1);
}


/* VISUAL */

.final-cta-visual {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 18px;

    padding: 35px 0 35px 35px;

    border-left: 1px solid var(--border);

    
}


.final-cta-visual span {
    font-family: var(--font-code);

    font-size: 0.62rem;

    letter-spacing: 0.22em;

    color: var(--text-soft);
}


/* =====================================================
   FOOTER
====================================================== */

.site-footer {
    padding: 75px 0 30px;

    background: #050505;
}

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(250px, 1.5fr)
        repeat(3, minmax(130px, 1fr));

    gap: 60px;

    padding-bottom: 60px;

    border-bottom: 1px solid var(--border);
}


/* BRAND */

.footer-logo {
    display: inline-block;

    margin-bottom: 25px;
}

.footer-logo img {
    display: block;

    width: 150px;

    height: auto;
}

.footer-brand p {
    max-width: 300px;

    margin: 0;

    font-size: 0.78rem;
    line-height: 1.8;

    color: var(--gray);
}


/* COLUMNAS */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 13px;
}

.footer-column-title {
    margin-bottom: 8px;

    font-family: var(--font-code);

    font-size: 0.55rem;

    letter-spacing: 0.2em;

    color: var(--red-light);
}

.footer-column a {
    color: #9b9fa6;

    text-decoration: none;

    font-size: 0.75rem;
    line-height: 1.5;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}


/* BOTTOM */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding-top: 28px;
}

.footer-bottom p,
.footer-bottom > span,
.back-to-top {
    margin: 0;

    font-family: var(--font-code);

    font-size: 0.52rem;

    letter-spacing: 0.08em;

    color: #9b9fa6;
}

.back-to-top {
    text-decoration: none;

    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--red);
}


/* =====================================================
   TABLET
====================================================== */

@media (max-width: 950px) {

    .final-cta-container {
        grid-template-columns: 1fr;

        gap: 65px;
    }

    .final-cta-visual {
        max-width: 450px;
    }

    .footer-main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =====================================================
   FOOTER - MOBILE
====================================================== */

@media (max-width: 600px) {

    .site-footer {
        padding: 60px 0 30px;
    }


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

        gap: 40px;

        padding-bottom: 45px;
    }


    .footer-logo {
        margin-bottom: 20px;
    }


    .footer-logo img {
        width: 135px;
    }


    .footer-brand p {
        max-width: 280px;

        font-size: 0.76rem;
        line-height: 1.7;
    }


    .footer-column {
        gap: 11px;
    }


    .footer-column-title {
        margin-bottom: 6px;

        font-size: 0.58rem;
    }


    .footer-column a {
        font-size: 0.78rem;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        padding-top: 24px;
    }


    .footer-bottom p,
    .footer-bottom > span,
    .back-to-top {
        font-size: 0.5rem;
    }


    .back-to-top {
        padding: 8px 0;
    }

}

/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .final-cta {
        padding: 75px 0;
    }

    .final-cta-container {
        gap: 45px;
    }

    .final-cta-code {
        margin-bottom: 18px;
    }

    .final-cta-title {
        margin-bottom: 24px;

        font-size: clamp(2.6rem, 13vw, 4rem);

        line-height: 0.98;
        letter-spacing: -0.04em;
    }

    .final-cta-description {
        margin-bottom: 30px;

        font-size: 0.88rem;
        line-height: 1.7;
    }

    .final-cta-actions {
        align-items: stretch;

        flex-direction: column;

        gap: 18px;
    }

    .final-cta-primary {
        width: 100%;
        min-width: 0;

        padding: 16px 18px;
    }

    .final-cta-secondary {
        width: fit-content;
    }

    .final-cta-visual {
        max-width: 100%;

        padding:
            28px
            0
            28px
            22px;
    }

}
/* =====================================================
   TECH TICKER
====================================================== */

.tech-ticker {
    position: relative;
    width: 100%;

    overflow: hidden;

    background: var(--red);

    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* CONTENEDOR QUE SE MUEVE */

.tech-ticker-track {
    display: flex;

    width: max-content;

    animation: ticker-scroll 28s linear infinite;
}


/* CADA BLOQUE REPETIDO */

.tech-ticker-content {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 28px;

    padding: 14px 28px;
}


/* TEXTO */

.tech-ticker-content span {
    white-space: nowrap;

    font-family: var(--font-code);

    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--white);
}


/* LOS // UN POCO MÁS SUAVES */

.tech-ticker-content span:nth-child(even) {
    opacity: 0.55;
}


/* =====================================================
   ANIMACIÓN
====================================================== */

@keyframes ticker-scroll {

    from {
        transform: translateX(0);
    }

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

}


/* PAUSA AL PASAR EL MOUSE */

.tech-ticker:hover .tech-ticker-track {
    animation-play-state: paused;
}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .tech-ticker-content {
        gap: 20px;
        padding: 12px 20px;
    }

    .tech-ticker-content span {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }

}

/* =====================================================
   DETALLES VISUALES DE SECCIÓN
====================================================== */

.services .container,
.process .container,
.about .container,
.contact .container {
    position: relative;
}

/* ACCESIBILIDAD - REDUCIR MOVIMIENTO */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}