/* =========================================================================
   VARIABLES GLOBALES Y TEMA
   ========================================================================= */
:root {
    /* Paleta de colores Premium AMMARIX */
    --bg-main: #060912;
    /* Azul abisal */
    --bg-alt: #0f172a;
    /* Azul noche del logo */
    --bg-card: #151d2f;
    /* Ajustado para el nuevo esquema */
    --bg-card-hover: #1e293b;

    --accent-blue: #10b981;
    /* Verde Esmeralda */
    --accent-blue-glow: rgba(16, 185, 129, 0.4);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.35);
    --accent-purple: #10b981;
    --accent-purple-glow: rgba(16, 185, 129, 0.4);

    --text-primary: #ffffff;
    /* Blanco puro */
    --text-secondary: #94a3b8;
    /* Gris azulado refinado */
    --text-muted: #64748b;

    --border-color: #1e293b;
    --border-focus: #334155;

    /* Tipografías */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Variables de estilo */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   RESETEO BASE Y TIPOGRAFÍA
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    overflow-wrap: anywhere;
    word-break: normal;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    overflow-wrap: anywhere;
    word-break: normal;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

ul {
    list-style: none;
}

/* =========================================================================
   SISTEMA DE DISEÑO (UTILIDADES)
   ========================================================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-grid.reverse .section-text {
    order: 1;
}

.section-grid.reverse .section-image {
    order: 2;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

.section-title {
    font-size: clamp(1.85rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Botones */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: scanSweep 2s infinite linear;
}

@keyframes scanSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-blue-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

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

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.w-full {
    width: 100%;
}

/* =========================================================================
   ANIMACIÓN DE CARGA (LOADER)
   ========================================================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================================================
   NAVEGACIÓN (NAVBAR)
   ========================================================================= */
#navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
    background: rgba(6, 7, 10, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(6, 7, 10, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    /* Esto mantendrá las animaciones suaves */
}

.logo-text {
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    color: var(--accent-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Selector de Idiomas (Minimalist Flags) */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    /* Gap consistente para evitar errores en móviles */
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    cursor: pointer;
    filter: brightness(0.8) saturate(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    will-change: transform, filter;
    border-radius: 50%;
    /* Banderas circulares para look minimalista y tech */
    overflow: hidden;
    background: transparent;
    border: none;
}

.lang-flag img {
    width: 130%;
    /* Ligeramente más grande para que el círculo oculte bordes */
    height: 130%;
    object-fit: cover;
    display: block;
}

.lang-flag:hover {
    transform: scale(1.25);
    filter: brightness(1.1) saturate(1.2);
}

.lang-flag.active,
.lang-flag[aria-current="page"] {
    filter: brightness(1) saturate(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* =========================================================================
   HERO SECCIÓN
   ========================================================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.binary-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, var(--bg-main) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 50%;
    padding-left: 5%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    color: var(--accent-blue);
    background: rgba(16, 185, 129, 0.05);
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
}

.hero h1 {
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

/* Base para las líneas */
.hero .line-1,
.hero .line-2 {
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: revealTitle 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero .line-1 {
    font-size: clamp(1.5rem, 8vw, 3rem);
    /* Reducido el mínimo para que palabras como AUTOMATIZACIÓN quepan en 320px */
    background: linear-gradient(90deg, #fff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    animation-delay: 0.2s;
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    /* Ajustado para máximo aprovechamiento de pantalla */
}

.hero .line-2 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-blue);
    margin-top: -0.05em;
    margin-left: 0.1em;
    z-index: 1;
    filter: drop-shadow(0 0 10px var(--accent-blue-glow));
    animation-delay: 0.5s;
    transition: var(--transition);
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* Animación de Revelado */
@keyframes revealTitle {
    0% {
        opacity: 0;
        transform: translateY(30px) skewY(5deg);
        clip-path: inset(100% 0 0 0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
        clip-path: inset(0 0 0 0);
    }
}

/* El Rayo Escáner (Laser Beam) */
.hero h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue);
    z-index: 3;
    opacity: 0;
    animation: scanBeam 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.5s;
}

@keyframes scanBeam {
    0% {
        top: 0;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.8;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
        opacity: 0;
    }
}

/* Efecto de Interferencia/Parpadeo (Holograma) */
.hero .line-1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
    opacity: 0.5;
    animation: flicker 4s infinite;
}

@keyframes flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.2;
        transform: translateX(2px);
    }
}

.hero h1:hover .line-2 {
    -webkit-text-stroke-color: var(--accent-purple);
    filter: drop-shadow(0 0 25px var(--accent-purple-glow));
    transform: translateX(15px);
}

.hero h2 {
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.5rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Visual Hero Animado con CSS */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 500px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.abstract-shape {
    position: relative;
    width: 300px;
    height: 300px;
    max-width: 100%;
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed var(--border-color);
    animation: rotate 20s linear infinite;
}

.ring-1 {
    border-color: rgba(16, 185, 129, 0.2);
    animation-direction: reverse;
}

.ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 1px solid var(--accent-purple-glow);
    animation-duration: 15s;
}

.ring-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border: 2px solid var(--accent-blue);
    opacity: 0.5;
    animation-direction: reverse;
    animation-duration: 10s;
}

.core {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-blue);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 50px var(--accent-blue);
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* =========================================================================
   SECCIÓN NOSOTROS & BENEFICIOS
   ========================================================================= */
.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-section {
    overflow-x: hidden;
}

.about-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-shell > * {
    width: 100%;
    min-width: 0;
}

.about-copy {
    max-width: 40rem;
}

.about-copy .section-subtitle {
    margin-bottom: 0.75rem;
}

.about-title {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
}

.about-copy p,
.about-check-list li,
.about-step,
.about-terminal pre,
.about-console-title {
    overflow-wrap: anywhere;
    word-break: normal;
}

.about-copy p {
    max-width: 62ch;
}

.about-check-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.about-check-list li {
    position: relative;
    min-width: 0;
    padding-left: 1.75rem;
    color: var(--text-primary);
}

.about-check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--accent-blue);
    font-weight: 700;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-console {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(10, 14, 22, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.about-console-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(21, 29, 47, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.about-console-dots {
    display: flex;
    gap: 6px;
}

.about-console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.about-console-dot-red {
    background-color: #ff5f56;
}

.about-console-dot-yellow {
    background-color: #ffbd2e;
}

.about-console-dot-green {
    background-color: #27c93f;
}

.about-console-title {
    min-width: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-console-spacer {
    display: block;
    width: 48px;
    height: 1px;
}

.about-console-body {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.about-pipeline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.about-step {
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.55);
    background: rgba(21, 29, 47, 0.85);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08), 0 0 16px rgba(16, 185, 129, 0.12);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-connector {
    position: relative;
    justify-self: center;
    width: 2px;
    height: 2.75rem;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.18) 0%, rgba(16, 185, 129, 0.45) 50%, rgba(148, 163, 184, 0.18) 100%);
    border-radius: 999px;
    overflow: hidden;
}

.about-pulse {
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue);
    transform: translate(-50%, 0);
    animation: about-flow-y 2.4s linear infinite;
}

.about-connector-delay .about-pulse {
    animation-delay: 1.2s;
}

.about-terminal {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.about-terminal pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.about-terminal code {
    color: var(--text-primary);
}

.about-terminal-key {
    color: #ff7b72;
}

.about-terminal-value {
    color: #a5d6ff;
}

@keyframes about-flow-y {
    0% {
        top: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 0.65rem);
        opacity: 0;
    }
}

@keyframes about-flow-x {
    0% {
        left: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 0.65rem);
        opacity: 0;
    }
}

@media (min-width: 640px) {
    .about-pipeline {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .about-connector {
        width: clamp(2rem, 6vw, 4rem);
        min-width: 2rem;
        height: 2px;
    }

    .about-pulse {
        top: 50%;
        left: 0;
        transform: translate(0, -50%);
        animation-name: about-flow-x;
    }
}

@media (min-width: 993px) {
    .about-shell {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
        grid-template-areas: "visual copy";
    }

    .about-copy {
        grid-area: copy;
        justify-self: end;
    }

    .about-visual {
        grid-area: visual;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 5rem 0;
    }

    .about-shell {
        gap: 1.75rem;
    }

    .about-copy {
        max-width: 100%;
    }

    .about-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .about-console-body {
        padding: 1rem;
    }

    .about-console-bar {
        gap: 0.75rem;
    }

    .about-console-spacer {
        width: 42px;
    }

    .about-terminal pre {
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

@media (max-width: 420px) {
    .about-pipeline {
        padding: 0.875rem;
    }

    .about-step {
        padding: 0.7rem 0.85rem;
        font-size: 0.83rem;
    }

    .about-terminal {
        padding: 0.85rem;
    }

    .about-terminal pre {
        font-size: 0.78rem;
    }
}

.tech-box {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.window-header {
    background: var(--bg-card);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.circles {
    display: flex;
    gap: 6px;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.circle-red {
    background-color: #ff5f56;
}

.circle-yellow {
    background-color: #ffbd2e;
}

.circle-green {
    background-color: #27c93f;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.window-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.flow-node {
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    z-index: 2;
}

.flow-line {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    position: relative;
}

.flow-dot {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue);
    animation: flowMove 2s infinite linear;
}

.delay-line .flow-dot {
    animation-delay: 1s;
}

@keyframes flowMove {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.code-editor {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-editor pre {
    margin: 0;
}

.code-editor code {
    color: var(--text-primary);
}

.code-editor .kw {
    color: #ff7b72;
}

.code-editor .fn {
    color: #d2a8ff;
}

.code-editor .str {
    color: #a5d6ff;
}

.benefit-item {
    margin-top: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    transition: var(--transition);
}

.benefit-item:hover {
    border-left-color: var(--accent-blue);
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* --- NUEVA METÁFORA VISUAL: CAOS VS AMMARIX --- */
.workflow-metaphor {
    display: flex;
    gap: 1rem;
    width: 100%;
    height: 400px;
    background: #06070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    max-width: 100%;
}

.metaphor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-chaos {
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.panel-ammarix {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.panel-tag {
    position: absolute;
    top: 15px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 900;
    opacity: 0.5;
}

.chaos-icons, .ammarix-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
}

.panel-chaos i { color: #4b5563; }
.panel-ammarix i { color: #10b981; filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3)); }

.icon-phone { animation: phoneShake 0.5s infinite; }
@keyframes phoneShake {
    0% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0); }
}

.panel-status {
    position: absolute;
    bottom: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.metaphor-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.glitch-line {
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    animation: glitchMove 2s infinite linear;
}

@keyframes glitchMove {
    0% { height: 0%; top: 0; }
    50% { height: 100%; top: 0; }
    100% { height: 0%; top: 100%; }
}

/* --- INTERACTIVIDAD HOVER --- */
.section-grid:has(.benefit-item[data-benefit="costs"]:hover) .icon-profit,
.section-grid:has(.benefit-item[data-benefit="costs"]:hover) .msg-costs {
    color: #fff !important;
    transform: scale(1.3) translateY(-10px);
    text-shadow: 0 0 20px #10b981;
    opacity: 1 !important;
}

.section-grid:has(.benefit-item[data-benefit="control"]:hover) .icon-check,
.section-grid:has(.benefit-item[data-benefit="control"]:hover) .msg-control {
    color: #fff !important;
    transform: scale(1.3) translateY(-10px);
    text-shadow: 0 0 20px #10b981;
    opacity: 1 !important;
}

.section-grid:has(.benefit-item[data-benefit="rigor"]:hover) .icon-speed,
.section-grid:has(.benefit-item[data-benefit="rigor"]:hover) .msg-rigor {
    color: #fff !important;
    transform: scale(1.3) translateY(-10px);
    text-shadow: 0 0 20px #10b981;
    opacity: 1 !important;
}

.section-grid:has(.benefit-item[data-benefit="tech"]:hover) .icon-growth,
.section-grid:has(.benefit-item[data-benefit="tech"]:hover) .msg-tech {
    color: #fff !important;
    transform: scale(1.3) translateY(-10px);
    text-shadow: 0 0 20px #10b981;
    opacity: 1 !important;
}

/* Overlays Invisibles por defecto */
.metaphor-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.reaction-msg {
    position: absolute;
    background: #10b981;
    color: #000;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.emerald-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: scanLine 3s infinite linear;
}

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Responsivo */
@media (max-width: 768px) {
    .workflow-metaphor {
        flex-direction: column;
        height: auto;
        padding-bottom: 3rem;
    }
    .metaphor-panel { padding: 2.5rem 1rem; }
    .metaphor-divider { width: 100%; height: 1px; }
    .reaction-msg { position: relative; width: 100%; text-align: center; }
}

/* =========================================================================
   SECCIÓN SERVICIOS (TARJETAS)
   ========================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-blue-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.card:hover::before {
    opacity: 0.1;
}

.card>* {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--accent-blue-glow);
}

/* Iconos puros en CSS */
.icon-gear {
    width: 32px;
    height: 32px;
    border: 3px dashed var(--accent-blue);
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.icon-code::before {
    content: '< >';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-purple);
    font-weight: bold;
}

.icon-monitor {
    width: 32px;
    height: 22px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    position: relative;
}

.icon-monitor::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    width: 8px;
    height: 4px;
    background: var(--accent-blue);
}

.icon-db {
    width: 28px;
    height: 32px;
    border: 2px solid var(--accent-purple);
    border-radius: 50% 50% 50% 50% / 15% 15% 15% 15%;
    position: relative;
}

.icon-db::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -2px;
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--accent-purple);
    border-radius: 50%;
}

.icon-link {
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    position: relative;
    transform: translateX(-4px) translateY(4px);
}

.icon-link::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    top: -8px;
    left: 12px;
}

.icon-cpu {
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent-purple);
    position: relative;
}

.icon-cpu::before {
    content: '';
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 4px;
    right: 4px;
    border-left: 2px dashed var(--accent-purple);
    border-right: 2px dashed var(--accent-purple);
}

/* =========================================================================
   PROCESO (TIMELINE)
   ========================================================================= */
.timeline {
    position: relative;
    margin: 4rem auto;
    max-width: 800px;
    padding-left: 0;
}

/* Línea vertical: Situada entre el número y el texto */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 59px;
    /* 44px (número) + 15px (separación) */
    width: 2px;
    height: 100%;
    background: rgba(16, 185, 129, 0.15);
    /* Verde esmeralda sutil para la línea */
    z-index: 0;
}

/* Brillo láser animado */
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 58px;
    /* Centrado sobre los 2px de la línea */
    width: 4px;
    height: 80px;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px var(--accent-blue);
    border-radius: 50px;
    animation: flashLight 4s linear infinite;
    z-index: 0;
}

@keyframes flashLight {
    0% {
        top: -10%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 35px;
    /* Separación total para que quepa la línea en medio (15px + 2px + 18px) */
    margin-bottom: 4rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: relative;
    flex-shrink: 0;
    background: var(--bg-main);
    color: var(--accent-blue);
    font-family: 'Space Grotesk', var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--accent-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-shadow: 0 0 10px var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.step-content {
    flex: 1;
    padding-top: 5px;
    /* Ajuste visual para alinear con el círculo */
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* =========================================================================
   FORMULARIO Y CTA
   ========================================================================= */
.cta-section {
    background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-main) 100%);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
    background: #000;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: monospace;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

.contact-form select {
    margin-bottom: 1.5rem;
    cursor: pointer;
    appearance: none;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    /* Alineado con el inicio del texto */
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
}

.form-checkbox-group input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    /* Ajuste para alinear con la primera línea */
    cursor: pointer;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
}

.form-checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox-group a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: var(--transition);
}

.form-checkbox-group a:hover {
    color: var(--accent-purple);
}

/* Estilo para el botón deshabilitado */
#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    box-shadow: none;
}

#submitBtn:disabled::after {
    display: none;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--accent-blue);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--accent-green);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
    color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--accent-green-glow);
}

.footer-social-links a:focus-visible {
    outline: 1px solid var(--accent-green);
    outline-offset: 3px;
}

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

/* =========================================================================
   EFECTOS DE REVELACIÓN (SCROLL JS)
   ========================================================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================================
   UTILIDADES ACCESIBILIDAD
   ========================================================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================= */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    /* Invertimos el orden general para móviles: Texto primero, Visual abajo */
    .section-grid .section-image {
        order: 2;
    }

    .section-grid .section-text {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-grid.reverse .section-text {
        order: 1;
    }

    .section-grid.reverse .section-image {
        order: 2;
    }

    .check-list li {
        text-align: left;
    }

    .hero-content {
        width: 100%;
        text-align: left;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        opacity: 0.2;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .hero-actions {
        justify-content: flex-start;
    }

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

    .footer-social-links {
        justify-content: flex-start;
    }

    /* 2 columnas para cards-grid en tablets */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Alineación 'Flush Left' (Alineación total a la izquierda) */
    h1,
    h2,
    h3,
    h4,
    p,
    li,
    .section-subtitle,
    .benefit-item {
        text-align: left !important;
    }

    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .section-header {
        text-align: left;
        margin: 0 0 3rem 0;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    /* Eliminar margin: auto y ajustar alineación flex */
    .hero-content,
    .section-text,
    .cta-section,
    .contact-form,
    .footer-grid {
        align-items: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .section-text {
        padding: 0;
        align-items: flex-start;
    }

    .nav-links,
    .nav-right>.btn-outline {
        display: none;
    }

    .lang-selector {
        margin-left: 0;
        gap: 0.6rem;
    }

    .lang-flag {
        width: 28px;
        height: 19px;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    .nav-right {
        order: 2;
        gap: 0.35rem;
        margin-left: auto;
    }

    /* Centrado Infalible del Hero en Móvil */
    .hero-content {
        width: 100% !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .hero h1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }

    .hero .line-1,
    .hero .line-2 {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
    }

    .hero h2 {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: center !important;
        margin: 0 auto 2.5rem !important;
    }

    .hero-actions {
        justify-content: center !important;
        width: 100% !important;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-bottom {
        text-align: left;
        padding-left: 20px;
    }

    /* Ajuste de Timeline para móvil: Mantiene la línea entre número y texto */
    .timeline {
        padding-left: 0;
        margin: 0;
    }

    .timeline-step {
        gap: 25px;
        /* Un poco más compacto en móvil, pero manteniendo la estructura */
        padding-left: 0;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 52px;
        /* 40px (núm) + 12px (separación) */
    }

    .timeline::after {
        left: 51px;
        width: 4px;
    }
}

@media (max-width: 600px) {

    /* 1. Adaptación de Contenedores */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* 2. Optimización de la Ventana de Código (.tech-box) */
    .tech-box .window-body {
        padding: 1rem;
    }

    .tech-box .code-editor {
        font-size: 11px;
        padding: 0.8rem;
    }

    .tech-box .flow-visual {
        overflow-x: auto;
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .tech-box .flow-node {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        white-space: nowrap;
    }

    .tech-box .flow-dot {
        width: 6px;
        height: 6px;
        top: -2px;
    }

    /* 4. Tipografía y Espaciado */
    /* Mantener tamaños específicos en móviles pequeños */
    /* Mantener jerarquía en móviles extremos */
    .hero .line-1 {
        font-size: clamp(1.4rem, 8vw, 2.2rem) !important;
        max-width: 100% !important;
    }

    .hero .line-2 {
        font-size: clamp(2.4rem, 11vw, 3.8rem) !important;
        max-width: 100% !important;
    }

    .section {
        padding: 6rem 0;
    }

    /* 5. Botones y Clickables */
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .contact-form button {
        width: 100%;
        display: block;
        margin: 0 0 0.8rem 0;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }

    /* Asegurar que el contenido no desborde horizontalmente */
    .container,
    .nav-container {
        width: 100%;
        padding: 0 20px;
    }
}


/* =========================================================================
   SOLUCIÓN CONSOLIDADA - RESPONSIVE ABOUT SECTION
   Soluciona desbordamientos en la sección 'Tu Socio Tecnológico' (Todos los idiomas)
   ========================================================================= */
@media (max-width: 768px) {
    .legacy-about {
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow-x: hidden !important; /* Blindaje total anti-scroll */
    }

    /* Contenedores Elásticos y Blindaje de Ancho */
    .legacy-about,
    .legacy-about .section-grid,
    .legacy-about .container,
    .legacy-about .tech-box {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Escalado de Animación 'To Guapa' */
    .legacy-about .tech-box {
        height: auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Blindaje de la animación interna del Flow Visual */
    .legacy-about .tech-box .flow-visual {
        overflow-x: auto !important;
        padding: 1rem !important;
        display: flex !important;
        gap: 0.8rem !important;
    }

    /* Tratamiento de Texto Multidioma (ES, EN, FR) */
    .legacy-about .section-title,
    .legacy-about .section-subtitle,
    .legacy-about p,
    .legacy-about h2,
    .legacy-about li {
        width: 100% !important;
        max-width: 100% !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
        hyphens: none !important;
    }
    
    /* Elimina cualquier padding o margin extra que empuje lateralmente */
    .legacy-about .section-image, .legacy-about .section-text {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.timeline {
    overflow: hidden;
    /* Evita que la luz del timeline cause scroll */
}

/* =========================================================================
   ESTILOS PARA PÁGINAS LEGALES
   ========================================================================= */
.legal-page #navbar {
    background: rgba(6, 7, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    padding: 10rem 0 6rem;
    min-height: 70vh;
}

.container-narrow {
    max-width: 850px;
    margin: 0 auto;
}

.legal-content .section-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    margin-bottom: 3rem;
    text-align: left;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-family: var(--font-heading);
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-content section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 8rem 0 4rem;
    }
}
