/* --- Variables y Reset --- */
:root {
    --primary-color: #0f172a;
    /* Azul marino muy oscuro (Slate 900) */
    --secondary-color: #1e293b;
    /* Azul grisáceo (Slate 800) */
    --accent-color: #3b82f6;
    /* Azul brillante sobrio para CTAs */
    --accent-hover: #2563eb;
    --text-dark: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;

    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 100px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* --- Utilidades --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

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

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

/* --- Header --- */
header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

/* Navbar transparente cuando está sobre el hero */
header.over-hero {
    background-color: transparent !important;
    backdrop-filter: blur(0px);
    box-shadow: none;
}

/* Colores blancos cuando está sobre el hero */
header.over-hero .logo {
    color: var(--white) !important;
}

header.over-hero .nav-link {
    color: var(--white) !important;
}

header.over-hero .bar {
    background-color: var(--white) !important;
}

/* Submenu siempre blanco */

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

/* Cambiar colores del navbar cuando está scrolled (fuera del hero) */
header.scrolled .logo {
    color: var(--primary-color);
}

header.scrolled .nav-link {
    color: var(--primary-color);
}

header.scrolled .bar {
    background-color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    transition: var(--transition);
}

/* Logo blanco - visible sobre el hero */
.logo-white {
    display: none;
}

/* Logo oscuro - visible por defecto y cuando sale del hero */
.logo-dark {
    display: block;
}

/* Mostrar logo blanco cuando está sobre el hero */
header.over-hero .logo-white {
    display: block;
}

header.over-hero .logo-dark {
    display: none;
}

/* Mostrar logo oscuro cuando sale del hero */
header.scrolled .logo-white {
    display: none;
}

header.scrolled .logo-dark {
    display: block;
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-bold {
    font-weight: 700;
    color: var(--accent-color);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Botón CTA del navbar - Más visible y llamativo */
.nav-cta {
    font-weight: 700;
    padding: 12px 24px;
    font-size: 0.95rem;
    box-shadow: none;
}

.nav-cta::after {
    display: none;
    /* Quitar la línea inferior del hover normal */
}

.nav-cta:hover {
    box-shadow: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Submenú desplegable */
/* --- Mega Menu (Rediseño) --- */
.nav-item {
    padding-bottom: 20px;
    /* Fix del Hover Gap: área invisible para mantener el hover */
    margin-bottom: -20px;
}

.dropdown-menu {
    /* Reset base */
    position: absolute;
    top: 100%;
    background-color: var(--white);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos Mega Menu */
/* Estilos específicos Mega Menu */
.mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px) !important;
    width: 1000px;
    /* Más ancho para evitar cortes */
    max-width: 95vw;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Evitar desbordamiento */
    background-color: var(--white) !important;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}

.mega-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Ajuste columna izquierda */
    min-height: 320px;
}

/* Columna Izquierda (Highlight) */
.mega-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.mega-icon-main {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.mega-highlight h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mega-highlight p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
}

/* Columna Derecha (Grid de Enlaces) */
.mega-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 30px 40px;
    list-style: none !important;
    overflow-y: auto;
    max-height: 500px;
}

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    word-wrap: break-word;
    overflow: hidden;
}

.mega-link:hover {
    background-color: #f8fafc;
}

.mega-link i {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 3px;
    transition: var(--transition);
}

.mega-link:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.link-title {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.link-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 10px;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    pointer-events: auto;
    /* Aumentar área táctil para dispositivos móviles */
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    transition: var(--transition);
    background-color: var(--primary-color);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Partículas de fondo */
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero h1 .emphasis {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CSS Only Mockup (Hero) --- */
.erp-mockup {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.erp-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    background: #e2e8f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #cbd5e1;
}

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

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #f59e0b;
}

.dots span:nth-child(3) {
    background: #22c55e;
}

.mockup-bar {
    height: 10px;
    width: 60%;
    background: #fff;
    border-radius: 4px;
    font-size: 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.mockup-body {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 20%;
    background: var(--primary-color);
    height: 100%;
}

.mockup-main {
    width: 80%;
    padding: 20px;
    background: #f1f5f9;
}

.mockup-chart {
    height: 80px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 4px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.mockup-row {
    height: 20px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 100%;
}

.mockup-row:last-child {
    width: 70%;
}

/* --- Carrusel de Imágenes --- */
/* Mockup ERP - Estilos en archivo separado (mockup.css) */

/* --- Secciones Generales --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Módulos (Cards) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    top: 0;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--accent-color);
    top: -8px;
    transform: translateY(-2px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.icon-box i {
    width: 36px;
    height: 36px;
    stroke-width: 2.5;
    color: var(--accent-color);
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Iconos CSS simples */
.icon-chart {
    width: 24px;
    height: 24px;
    border-left: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.icon-chart::after {
    content: '';
    width: 3px;
    height: 10px;
    background: var(--accent-color);
    position: absolute;
    bottom: 0;
    right: 5px;
}

.icon-chart::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent-color);
    position: absolute;
    bottom: 0;
    right: 12px;
}

.icon-doc {
    width: 20px;
    height: 28px;
    border: 2px solid var(--accent-color);
    border-radius: 2px;
}

.icon-box-shape {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-color);
}

.icon-user {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    position: relative;
    top: -4px;
}

.icon-user::after {
    content: '';
    width: 26px;
    height: 10px;
    border: 2px solid var(--accent-color);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 18px;
    left: -7px;
}

/* --- Beneficios --- */
.benefits-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.benefits-text {
    flex: 1;
}

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

.benefits-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    transition: var(--transition);
}

.benefits-visual:hover .abstract-shape {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.shape-inner {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* --- Video Container --- */
.video-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}


/* --- Contacto --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: var(--accent-color);
}

.whatsapp-icon i {
    color: #25D366;
}

.info-item:hover .contact-icon {
    background: #dbeafe;
    transform: scale(1.05);
}

.whatsapp-icon {
    background: #e7f9f0;
}

.info-item:hover .whatsapp-icon {
    background: #d1f4e0;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.whatsapp-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--accent-color);
    transition: var(--transition);
}

.form-box:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

/* --- Footer Moderno --- */
footer {
    background: #0f172a;
    /* Slate 900 sólido */
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Logo blanco */
    opacity: 0.9;
}

.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.95rem;
    transition: var(--transition);
    color: #94a3b8;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}



.contact-info {
    margin-top: 25px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.contact-info p a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.contact-info p a:hover {
    color: #fff;
}

.contact-info i {
    color: var(--accent-color);
}

/* Redes sociales (Footer) */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon i {
    font-size: 1rem;
    color: #cbd5e1;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon:hover i {
    color: var(--white);
}



.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon:hover i {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* --- Animaciones --- */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }

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

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }

    100% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    animation: slideInDown 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); */
    opacity: 1;
}

.hero-content p {
    animation: slideInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    opacity: 1;
}

.hero-content .hero-buttons {
    animation: fadeInScale 1s ease-out 0.6s both;
    opacity: 1;
}

.hero-visual {
    animation: slideInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Ocultar hero-visual en pantallas pequeñas */
    .mockup-body {
        display: none;
    }

    /* Simplificar mockup en móvil */
    .erp-mockup {
        height: 50px;
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(15px);
        transform: translateY(0) !important;
        height: var(--header-height);
    }

    .nav-container {
        position: relative;
        z-index: 1001;
    }

    /* En móvil, también transparente sobre el hero */
    header.over-hero {
        background-color: transparent !important;
        backdrop-filter: blur(0px) !important;
        box-shadow: none !important;
    }

    header.scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
    }

    .hamburger {
        display: flex !important;
        z-index: 1002;
        position: relative;
        opacity: 1;
        visibility: visible;
    }

    /* Asegurar que las barras sean visibles en ambos estados */
    header.over-hero .hamburger .bar {
        background-color: var(--white) !important;
    }

    header.scrolled .hamburger .bar {
        background-color: var(--primary-color) !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: calc(100vh - var(--header-height));
        transition: left 0.3s ease-in-out;
        flex-direction: column;
        padding-top: 40px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item {
        width: 100%;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .brand-col p {
        margin: 0 auto 25px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-form .input-group {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-info p {
        justify-content: center;
    }

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

    .nav-item.active .dropdown-menu {
        max-height: 1000px;
        /* Permitir más altura para el mega menu */
        margin-top: 10px;
        padding-left: 0;
    }

    /* Adaptar Mega Menu a Móvil */
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .mega-content {
        display: block;
        min-height: auto;
    }

    .mega-highlight {
        display: none;
        /* Ocultar destacado en móvil para ahorrar espacio */
    }

    .mega-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .mega-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }

    .mega-link:hover {
        background: transparent;
    }

    .mega-link i {
        color: rgba(255, 255, 255, 0.7);
    }

    .link-title {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

    .link-desc {
        display: none;
        /* Simplificar en móvil */
    }

    .nav-item {
        margin-bottom: 0;
        padding-bottom: 0px;
    }

    .nav-cta {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .logo-img {
        height: 75px;
    }

    .benefits-layout {
        flex-direction: column;
    }

    .video-wrapper {
        max-width: 100%;
        margin: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    footer {
        padding-top: 56px;
        padding-bottom: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
        margin-bottom: 42px;
        text-align: left;
    }

    .brand-col,
    .contact-col {
        grid-column: 1 / -1;
    }

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

    .footer-logo-img {
        max-width: 180px;
        height: auto;
    }

    .brand-col p {
        max-width: 100%;
        margin: 0 0 20px;
    }

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

    .footer-col h4 {
        margin-bottom: 14px;
        font-size: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 9px;
    }

    .footer-col ul li a,
    .footer-soon {
        font-size: 0.9rem;
    }

    .contact-info {
        margin-top: 0;
    }

    .contact-info p {
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 9px;
        font-size: 0.88rem;
    }

    .footer-bottom {
        padding-top: 18px;
        font-size: 0.78rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .links-col {
        grid-column: 1 / -1;
    }
}

/* ==================== PAGE HEADER (PÁGINAS INTERNAS) ==================== */

/* Page Header - Header limpio y profesional para páginas internas */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 80px 0 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(59, 130, 246, 0.04)"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    pointer-events: none;
    opacity: 0.6;
}

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

.page-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ==================== HEROES PARA PÁGINAS LEGALES ==================== */

.hero--legal {
    min-height: 45vh;
    padding: 50px 0 30px;
    background-color: var(--primary-color);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -40px;
}

.hero--legal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(59, 130, 246, 0.03)"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    pointer-events: none;
}

.hero--legal-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero--legal h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero--legal p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 100%;
}

/* Card Superpuesta para Contenido Legal */
.legal-content-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    position: relative;
    z-index: 10;
    margin-top: -30px;
}

.legal-content-card h2,
.legal-content-card h1.error404-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-content-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content-card li {
    list-style: disc;
    margin-bottom: 12px;
    padding-left: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== ERROR 404 ==================== */

.error404-kicker {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.error404-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.error404-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
}

.error404-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

.legal-content-card .error404-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .legal-content-card .error404-code {
        font-size: 8rem;
    }
}

@media (max-width: 600px) {
    .legal-content-card .error404-code {
        font-size: 6.5rem;
    }
}

.error404-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.error404-text {
    max-width: 580px;
    margin: 0 auto 24px !important;
    color: var(--text-dark);
}

.error404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* Tablet y Mobile */
@media (max-width: 900px) {

    /* Mostrar hamburger en tablets y móviles */
    .hamburger {
        display: flex;
    }

    /* Ocultar menú desktop */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    header.over-hero .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-item {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        display: block;
        color: var(--primary-color) !important;
    }

    header.over-hero .nav-menu .nav-link {
        color: var(--primary-color) !important;
    }

    header.over-hero .nav-menu .nav-cta {
        color: var(--white) !important;
    }

    .nav-link::after {
        display: none;
    }

    /* Ocultar dropdown arrow en móvil */
    .dropdown-arrow {
        display: none;
    }

    /* Mega menu en móvil */
    .mega-menu {
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: none;
        border: none;
        background: #f8fafc !important;
    }

    .nav-item.active .mega-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1000px;
    }

    .mega-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mega-highlight {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .mega-links-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        max-height: none;
    }

    /* CTA en móvil */
    .nav-cta {
        width: auto;
        max-width: calc(100% - 40px);
        margin: 10px auto 20px;
        padding: 10px 18px;
        display: block;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero--secondary {
        min-height: 45vh;
        padding: 40px 0 30px;
    }

    .hero--secondary h1 {
        font-size: 1.8rem;
    }

    .hero--secondary p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero--legal {
        min-height: 45vh;
        padding: 40px 0 20px;
        margin-bottom: -30px;
    }

    .hero--legal h1 {
        font-size: 1.8rem;
    }

    .legal-content-card {
        padding: 30px 20px;
        margin-top: -20px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }

    .hero--badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* --- Política de Privacidad --- */
.section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.section li {
    list-style: disc;
    margin-bottom: 12px;
    padding-left: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

.section>.container>div {
    opacity: 1;
    transform: translateY(0);
}

/*Carrusel para lista de clientes*/

.carouselClientes {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    padding: 40px 0;
}

.carouselClientes-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carouselClientes-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 168px;
    height: 96px;
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.carouselClientes-item:hover {
    border-color: #3b5b99;
    box-shadow: 0 6px 24px rgba(59, 91, 153, 0.12);
}

.carouselClientes-track img {
    width: 100%;
    height: 100%;
    max-width: 130px;
    max-height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

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

/* Bloque destacado para landing de asistencias */
.asistencias-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 56px 0;
}

.asistencias-highlight-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 28px;
}

.asistencias-highlight h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.asistencias-highlight p {
    color: #cbd5e1;
    margin: 0;
}

@media (max-width: 768px) {
    .asistencias-highlight-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


@keyframes scroll {
    from {
        transform: translateX(0);
    }

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

/* --- Landing formal / estructura tipografica Geist --- */
:root {
    --primary-color: #172554;
    --secondary-color: #29458f;
    --accent-color: #f5b51b;
    --accent-hover: #e09d00;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --font-main: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

body {
    color: #334155;
    background: #fff;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    padding: 0 32px;
}

.section {
    padding: 112px 0;
}

.btn {
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 20px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.btn-accent {
    background: var(--accent-color);
    color: #172554;
}

.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(245, 181, 27, 0.22);
}

.btn-accent:active,
.btn-outline:active,
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #0f1b43;
    box-shadow: 0 4px 12px rgba(23, 37, 84, 0.18);
}

.hero {
    min-height: 650px;
    height: min(100vh, 780px);
    background: var(--primary-color);
    background-image: linear-gradient(90deg, rgba(23, 37, 84, 0.98) 0%, rgba(23, 37, 84, 0.94) 58%, rgba(41, 69, 143, 0.86) 100%);
}

.hero::before {
    background: linear-gradient(90deg, transparent 0 72%, rgba(245, 181, 27, 0.12) 72% 72.1%, transparent 72.1%);
}

.hero-container {
    max-width: 1200px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

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

.hero-eyebrow,
.section-label {
    display: block;
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-eyebrow {
    margin-bottom: 24px !important;
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: clamp(3.1rem, 6vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.hero p:not(.hero-eyebrow):not(.hero-note) {
    max-width: 530px;
    margin-bottom: 32px;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-buttons {
    justify-content: flex-start;
    gap: 12px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 52px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.hero-proof span::before {
    content: '—';
    margin-right: 8px;
    color: var(--accent-color);
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    max-width: 760px;
    margin-bottom: 56px;
    text-align: left;
}

.section-header .section-label,
.benefits-text .section-label {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.section-header h1,
.section-header h2,
.benefits-text h2,
.contact-info h2 {
    color: var(--primary-color);
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.section-header p,
.benefits-text>p,
.contact-info>p {
    max-width: 590px;
    margin-top: 18px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
}

.cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.card,
.card:nth-child(odd),
.card:nth-child(even) {
    min-height: 280px;
    padding: 36px 42px 36px 0;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.card:nth-child(even) {
    padding-left: 42px;
}

.card:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.card::before,
.card:hover::before {
    display: none;
}

.card:hover {
    top: 0;
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    border: 1px solid #c9d9f5;
    border-radius: 6px;
    background: #edf4ff;
    box-shadow: none;
}

.icon-box i {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.card:hover .icon-box {
    transform: none;
    box-shadow: none;
}

.card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.card li {
    display: inline-block;
    margin: 0 15px 8px 0;
    color: var(--text-light);
    font-size: 0.86rem;
}

.card li::before {
    content: '•';
    margin-right: 6px;
    color: var(--accent-color);
}

.benefits-layout {
    align-items: stretch;
    gap: clamp(50px, 9vw, 120px);
}

.benefits-text h2 {
    max-width: 520px;
}

.benefits-text>p {
    margin-bottom: 34px;
}

.benefits-list li {
    margin-bottom: 0;
    padding: 19px 0 19px 20px;
    border-left: 2px solid var(--accent-color);
    color: var(--text-light);
    font-size: 0.92rem;
}

.benefits-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 650;
}

.benefits-visual {
    min-height: 360px;
    border-radius: 6px;
    background: var(--primary-color);
    overflow: hidden;
    position: relative;
}

.benefits-visual::before {
    content: '24+';
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, 0.07);
    font-size: 13rem;
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 1;
    transform: translate(-50%, -58%);
}

.abstract-shape {
    z-index: 1;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.benefits-visual:hover .abstract-shape {
    transform: none;
    box-shadow: none;
}

.stat-number {
    color: var(--accent-color);
    font-size: 5rem;
}

.stat-label {
    color: #fff;
    font-size: 0.9rem;
}

#clientes .section-header {
    margin-bottom: 44px;
}

.carouselClientes {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.carouselClientes-track {
    gap: 16px;
    align-items: center;
}

.carouselClientes-track img {
    filter: grayscale(1);
    opacity: 0.58;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

.carouselClientes-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.contact-wrapper {
    align-items: flex-start;
    gap: clamp(48px, 8vw, 110px);
}

.contact-info h2 {
    max-width: 500px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid #c9d9f5;
    border-radius: 6px;
    background: #edf4ff;
}

.contact-icon i {
    color: var(--secondary-color);
}

.info-item:hover .contact-icon {
    background: #dceaff;
    transform: none;
}

.form-box {
    padding: 36px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 14px 40px rgba(23, 37, 84, 0.08);
}

.form-box:hover {
    transform: none;
    box-shadow: 0 14px 40px rgba(23, 37, 84, 0.08);
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #b8c8df;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(41, 69, 143, 0.14);
    transform: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .section {
        padding: 80px 0;
    }

    .content-page-section {
        padding-top: calc(var(--header-height) + 24px);
    }

    .hero {
        min-height: 690px;
    }

    .hero-container {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.4rem);
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        max-width: 300px;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-proof {
        gap: 12px 20px;
        margin-top: 38px;
    }

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

    .card,
    .card:nth-child(odd),
    .card:nth-child(even) {
        min-height: auto;
        padding: 30px 0;
        border-right: 0;
    }

    .benefits-layout,
    .contact-wrapper {
        flex-direction: column;
    }

    .benefits-visual {
        width: 100%;
        min-height: 280px;
    }

    .form-box {
        padding: 28px 22px;
    }

    #clientes .carouselClientes {
        width: calc(100% - 32px);
        margin-right: auto;
        margin-left: auto;
    }

    #clientes {
        padding-right: 16px;
        padding-left: 16px;
    }

    #clientes .section-header {
        margin-right: 8px;
        margin-left: 8px;
    }

    #contacto .contact-form-container {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    #contacto .form-box {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
}

/* --- Acabado institucional --- */
:root {
    --primary-color: #111c3a;
    --secondary-color: #3b5b99;
    --accent-color: #c69a2d;
    --accent-hover: #a77d1b;
    --bg-light: #f6f8fb;
    --border-color: #dfe5ee;
}

.hero {
    background: #111c3a;
    background-image: none;
}

.hero::before {
    background: none;
}

.hero-eyebrow,
.section-label {
    color: #d7b354;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(3rem, 5.6vw, 5.35rem);
    letter-spacing: -0.06em;
}

.hero p:not(.hero-eyebrow):not(.hero-note) {
    color: #b9c3d5;
}

.hero .btn-accent {
    background: #d7b354;
    color: #111c3a;
}

.hero .btn-accent:hover,
.hero .btn-accent:focus-visible {
    background: #e3c67c;
    box-shadow: 0 4px 12px rgba(215, 179, 84, 0.16);
}

.hero .btn-outline {
    border-color: #71809c;
    color: #e5e9f0;
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
    border-color: #d9e0ec;
    background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
    color: #aeb9ce;
    border-top-color: rgba(255, 255, 255, 0.16);
}

.hero-proof span::before {
    color: #d7b354;
}

.section-header h1,
.section-header h2,
.benefits-text h2,
.contact-info h2,
.card h3 {
    color: #17233f;
}

.section-header p,
.benefits-text>p,
.contact-info>p,
.card li,
.benefits-list li {
    color: #66748d;
}

.card:nth-child(odd) {
    border-right-color: #dfe5ee;
}

.icon-box,
.contact-icon {
    border-color: #d5dfef;
    background: #f0f4fa;
}

.icon-box i,
.contact-icon i {
    color: #3b5b99;
}

.benefits-visual {
    background: #17264b;
}

.benefits-visual::before {
    color: rgba(255, 255, 255, 0.045);
}

.benefits-list li {
    border-left-color: #c69a2d;
}

.stat-number {
    color: #d7b354;
}

.carouselClientes-track img {
    opacity: 0.48;
}

.carouselClientes-item:hover img {
    opacity: 1;
}

.form-box {
    border-top-color: #c69a2d;
    box-shadow: 0 12px 30px rgba(17, 28, 58, 0.06);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b5b99;
    box-shadow: 0 0 0 3px rgba(59, 91, 153, 0.12);
}

@media (prefers-reduced-motion: reduce) {

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

/* --- Carrusel de clientes: escala y bordes suaves --- */
.carouselClientes {
    position: relative;
    isolation: isolate;
    max-width: 1680px;
    margin-right: auto;
    margin-left: auto;
}

.carouselClientes::before,
.carouselClientes::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(48px, 10vw, 150px);
    pointer-events: none;
}

.carouselClientes::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-light) 0%, rgba(246, 248, 251, 0) 100%);
}

.carouselClientes::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-light) 0%, rgba(246, 248, 251, 0) 100%);
}

.carouselClientes-item {
    width: 176px;
    height: 104px;
}

.carouselClientes-track img {
    max-width: 140px;
    max-height: 58px;
}

@media (max-width: 600px) {
    .carouselClientes-item {
        width: 148px;
        height: 88px;
        padding: 14px 16px;
    }

    .carouselClientes-track img {
        max-width: 118px;
        max-height: 48px;
    }
}

/* --- Hero alineado y directorio de modulos --- */
.hero-container {
    align-items: flex-start;
    justify-content: center;
}

.hero-content {
    width: 100%;
    text-align: left;
}

.hero h1,
.hero p,
.hero-buttons,
.hero-proof {
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    align-items: flex-start;
}

.module-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.module-overview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 28px 26px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: inherit;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-overview-card:hover {
    border-color: #c9d9f5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.module-overview-card .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border: none;
    border-radius: 10px;
    background: #edf2ff;
    box-shadow: none;
}

.module-overview-card .icon-box i {
    width: 22px;
    height: 22px;
    color: #3b5b99;
}

.module-overview-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.module-overview-card p {
    margin: 10px 0 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
}

#modulos .module-directory-cta {
    justify-content: center;
}

@media (max-width: 960px) {
    .module-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .module-overview {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .module-overview-card {
        padding: 24px 20px;
    }
}

/* --- Navegación: flyouts de Productos y Recursos --- */
.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    text-align: left;
}

.nav-flyout {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 1200;
    min-width: 320px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(23, 37, 84, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-flyout--end {
    left: auto;
    right: 0;
}

.nav-item:hover .nav-flyout,
.nav-item:focus-within .nav-flyout,
.nav-item.active .nav-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-flyout-item {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--primary-color);
}

.nav-flyout-item:hover {
    background: #f4f7fb;
}

.nav-flyout-item.is-disabled {
    opacity: 0.62;
    cursor: default;
    pointer-events: none;
}

.nav-flyout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-flyout-desc {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.4;
}

.nav-badge,
.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #172554;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-badge--muted,
.footer-badge--muted {
    background: #e8eef8;
    color: #5b6b86;
}

header.over-hero .nav-flyout,
header.over-hero .nav-flyout .nav-link,
header.over-hero .nav-flyout-title,
header.over-hero .nav-flyout-item {
    color: var(--primary-color) !important;
}

.footer-soon {
    color: #94a3b8;
    font-size: 0.95rem;
}

.module-directory-cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 36px;
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .nav-menu ul {
        align-items: stretch;
    }

    .nav-link {
        font-size: 1.15rem;
        font-weight: 700;
        text-align: left;
    }

    .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-item.dropdown .dropdown-arrow {
        display: inline-block;
        font-size: 0.7rem;
    }

    .nav-flyout {
        position: static;
        min-width: 0;
        margin: 0 20px 8px;
        padding: 6px 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8fafc;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        pointer-events: none;
    }

    .nav-item.active .nav-flyout,
    .nav-item:focus-within .nav-flyout {
        opacity: 1;
        visibility: visible;
        max-height: 480px;
        pointer-events: auto;
    }

    .nav-item:hover .nav-flyout {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        pointer-events: none;
    }

    .nav-item.active:hover .nav-flyout,
    .nav-item.active .nav-flyout {
        opacity: 1;
        visibility: visible;
        max-height: 480px;
        pointer-events: auto;
    }

    .nav-flyout-item {
        text-align: left;
        padding: 12px 16px;
    }

    .nav-flyout-desc {
        display: none;
    }
}

/* --- Log de versiones --- */
.version-page {
    background: #fff;
}

.version-page .version-release {
    padding: 152px 0 120px;
}

.version-page .version-layout {
    display: grid;
    max-width: 1520px;
    padding: 0 32px 0 12px;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.version-page .version-layout:has(.version-toc) {
    grid-template-columns: 176px minmax(0, 1fr) 200px;
}

.version-page .version-aside {
    position: sticky;
    top: 132px;
}

.version-page .version-aside-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.version-page .version-aside-year {
    margin: 24px 0 10px;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.4;
}

.version-page .version-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.version-page .version-aside-link {
    display: block;
    padding: 9px 12px 9px 16px;
    border-left: 2px solid var(--border-color);
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.98rem;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.version-page .version-aside-link:hover {
    border-left-color: #e5a13a;
    color: var(--primary-color);
}

.version-page .version-aside-link.is-active {
    border-left-color: #e5a13a;
    background: rgba(229, 161, 58, 0.08);
    color: var(--primary-color);
    font-weight: 650;
}

.version-page .version-main {
    max-width: 1100px;
}

.version-page .versions-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 26px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.version-page .versions-breadcrumb a {
    color: var(--secondary-color);
    font-weight: 600;
}

.version-page .versions-breadcrumb a:hover {
    color: var(--primary-color);
}

.version-page .version-heading {
    position: relative;
    margin: 0;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.version-page .version-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 3px;
    background: var(--accent-color);
}

.version-page .version-heading-id {
    font-family: var(--font-mono);
    font-weight: 650;
    letter-spacing: -0.05em;
}

.version-page .version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    margin: 26px 0 0;
}

.version-page .version-date {
    margin: 0;
    color: var(--text-light);
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.5;
}

.version-page .version-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border: 1px solid rgba(245, 181, 27, 0.5);
    border-radius: 999px;
    background: rgba(245, 181, 27, 0.12);
    color: #8a5c07;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.version-page .version-badge--normativa {
    border-color: rgba(245, 181, 27, 0.5);
    background: rgba(245, 181, 27, 0.12);
    color: #8a5c07;
}

.version-page .version-lead {
    margin: 30px 0 0;
    color: var(--text-dark);
    font-size: 1.28rem;
    line-height: 1.7;
}

.version-page .version-change-group {
    margin-top: 64px;
}

.version-page .version-change-group h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px 0 0 14px;
    border-top: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 1.72rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.version-page .version-change-group h2 i {
    width: 1.1em;
    color: var(--accent-color);
    font-size: 0.72em;
    text-align: center;
}

.version-page .version-change-group--nuevo h2 {
    border-left-color: var(--accent-color);
}

.version-page .version-change-group--mejoras h2 {
    border-left-color: #29458f;
}

.version-page .version-change-group--mejoras h2 i {
    color: #29458f;
}

.version-page .version-change-group--correcciones h2 {
    border-left-color: #94a3b8;
}

.version-page .version-change-group--correcciones h2 i {
    color: #64748b;
}

.version-page .version-change-group ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.version-page .version-change-group li {
    position: relative;
    padding: 16px 0 16px 24px;
    color: var(--text-dark);
    font-size: 1.14rem;
    line-height: 1.7;
}

.version-page .version-change-group li+li {
    border-top: 1px solid var(--border-color);
}

.version-page .version-change-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 27px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
}

.version-page .version-change-group li ul {
    margin: 10px 0 4px;
}

.version-page .version-change-group li li {
    padding: 6px 0 6px 22px;
    font-size: 1.02rem;
}

.version-page .version-change-group li li+li {
    border-top: none;
}

.version-page .version-change-group li li::before {
    top: 16px;
    width: 5px;
    height: 5px;
}

.version-page .version-modules {
    margin: 64px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.version-page .version-modules-label {
    margin: 0 0 14px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.version-page .version-module-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.version-page .version-module-chips li {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.version-page .version-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.version-page .version-pager-link {
    display: block;
    color: var(--primary-color);
}

.version-page .version-pager-next {
    margin-left: auto;
    text-align: right;
}

.version-page .version-pager-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.version-page .version-pager-id {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.version-page .version-pager-link:hover .version-pager-id {
    color: var(--secondary-color);
}

.version-page .version-toc {
    position: sticky;
    top: 132px;
}

@media (max-width: 1120px) {
    .version-page .version-layout,
    .version-page .version-layout:has(.version-toc) {
        grid-template-columns: 176px minmax(0, 1fr);
        gap: 28px;
    }

    .version-page .version-toc {
        display: none;
    }
}

@media (max-width: 900px) {
    .version-page .version-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }

    .version-page .version-aside {
        position: static;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .version-page .version-release {
        padding: 132px 0 80px;
    }

    .version-page .version-change-group h2 {
        font-size: 1.4rem;
    }
}

/* --- Cómo funciona / proceso --- */
.process-section {
    --process-navy: #101c3f;
    --process-gold: #e5a13a;
    --process-muted: #b8bfd9;
    position: relative;
    background: var(--process-navy);
    color: #fff;
}

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

.process-header .section-label {
    margin-bottom: 20px;
    color: var(--process-gold);
}

.process-header h2 {
    color: #fff;
    margin-bottom: 16px;
}

.process-header p {
    max-width: 520px;
    color: var(--process-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-top: 4px;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 46px;
    right: -24px;
    height: 1px;
    background: linear-gradient(90deg, var(--process-gold) 0%, rgba(229, 161, 58, 0.35) 100%);
    z-index: 0;
}

.process-step-marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid rgba(229, 161, 58, 0.55);
    border-radius: 50%;
    background: var(--process-navy);
    color: var(--process-gold);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.process-step-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.process-step-duration {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--process-gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.process-step-detail {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    opacity: 0;
    transition: grid-template-rows 280ms ease, opacity 220ms ease;
}

.process-step-detail>p {
    overflow: hidden;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--process-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    transition: padding 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.process-step:hover .process-step-detail>p,
.process-step:focus-within .process-step-detail>p {
    padding: 14px 16px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.process-step:focus-visible {
    outline: none;
}

.process-step:focus-visible .process-step-marker {
    outline: 2px solid var(--process-gold);
    outline-offset: 3px;
}

.process-step:hover .process-step-marker,
.process-step:focus-within .process-step-marker {
    transform: scale(1.06);
    border-color: var(--process-gold);
    background: rgba(229, 161, 58, 0.12);
    box-shadow: 0 0 0 4px rgba(229, 161, 58, 0.12);
}

.process-step:hover .process-step-detail,
.process-step:focus-within .process-step-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

@media (max-width: 900px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 8px;
    }

    .process-step {
        display: grid;
        grid-template-columns: 46px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 18px;
        row-gap: 0;
        padding: 0 0 32px;
    }

    .process-step:not(:last-child)::before {
        top: 46px;
        left: 22px;
        right: auto;
        width: 1px;
        height: calc(100% - 46px);
        background: linear-gradient(180deg, var(--process-gold) 0%, rgba(229, 161, 58, 0.25) 100%);
    }

    .process-step-marker {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: start;
        margin-bottom: 0;
    }

    .process-step-title {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 6px;
    }

    .process-step-duration {
        grid-column: 2;
        grid-row: 2;
        margin-bottom: 10px;
    }

    .process-step-detail {
        grid-column: 2;
        grid-row: 3;
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .process-step-detail>p {
        padding: 14px 16px;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
    }

    .process-step:last-child {
        padding-bottom: 0;
    }
}

/* ===== Aviso de despedida de FSoft en el hero (08/11/2026) ===== */
.hero-announcement {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 1.5rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: none;
    transition: var(--transition);
}

.hero-announcement span {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-announcement:hover,
.hero-announcement:focus-visible {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .hero-announcement {
        font-size: 0.85rem;
        border-radius: 14px;
    }
}

/* --- Fase 2: formulario con telefono opcional y checkbox WhatsApp --- */
.form-optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.82rem;
}

.form-group-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.form-group-check label {
    margin: 0;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ============================================================
   Fase 3 (v2): ajustar hero para que todo quepa en laptop 16"
   - Permite que el hero crezca con su contenido (sin cap a 780px)
   - Fija padding-top por debajo del navbar para que el pill no se corte
   - Reduce ligeramente el tope del h1 y margenes para dejar aire al hero-proof
   ============================================================ */

.hero {
    height: auto;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
}

.hero-container {
    justify-content: flex-start;
    padding-top: 0;
}

.hero h1 {
    font-size: clamp(2.6rem, 4.8vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 20px;
}

.hero p:not(.hero-eyebrow):not(.hero-note) {
    margin-bottom: 28px;
    font-size: 1.02rem;
}

.hero-announcement {
    margin-bottom: 20px;
}

.hero-proof {
    margin-top: 36px;
}

/* =========================================================
   Polish (inicio): contraste, tracking, movimiento y tarjetas.
   Mantiene la paleta: tinta #111c3a, azul #3b5b99, dorado #c69a2d.
   ========================================================= */

/* Texto secundario: mismo tono, contraste AA sobre #f6f8fb */
.section-header p,
.benefits-text>p,
#contacto .contact-info>p,
.card li,
.benefits-list li,
.module-overview-card p {
    color: #56647c;
}

.section-header h1,
.section-header h2,
.benefits-text h2,
.contact-info h2 {
    letter-spacing: -0.03em;
}

/* Sombras de botón con la tinta de la marca, no azul brillante */
.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(17, 28, 58, 0.18);
}

.btn-accent:hover {
    box-shadow: 0 6px 18px rgba(17, 28, 58, 0.22);
}

/* Módulos: icono junto al título, sin baldosa */
.module-overview-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    align-content: start;
    column-gap: 12px;
}

.module-overview-card .icon-box {
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.module-overview-card .icon-box i,
.module-overview-card .icon-box svg {
    width: 22px;
    height: 22px;
    color: #3b5b99;
}

.module-overview-card h3 {
    font-size: 1.2rem;
}

.module-overview-card p {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.module-overview-card:hover .icon-box i,
.module-overview-card:hover .icon-box svg {
    color: #c69a2d;
}

.module-overview-card:focus-visible {
    outline: 2px solid #3b5b99;
    outline-offset: 3px;
}

/* Bloque de confianza: la cifra ya está en primer plano, sin eco decorativo */
.benefits-visual::before {
    content: none;
}

/* Formulario: borde completo, sin franja superior */
.form-box,
#contacto .form-box {
    border: 1px solid var(--border-color);
}

/* Contacto */
.info-item h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.whatsapp-link {
    color: #3b5b99;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.whatsapp-link:hover {
    color: #111c3a;
}

/* Superficies del navegador */
::selection {
    background: rgba(198, 154, 45, 0.28);
    color: #111c3a;
}

input,
textarea {
    caret-color: #3b5b99;
}

input[type="checkbox"] {
    accent-color: #3b5b99;
}

/* =========================================================
   Hero de inicio (LSoft): "Tu empresa, bajo control".
   Tinta #111c3a, azul #3b5b99, dorado #c69a2d (#d7b354 sobre tinta).
   Todo bajo #inicio.hero-lsoft para ganar a las reglas .hero previas.
   ========================================================= */

#inicio.hero-lsoft {
    --lh-ink: #111c3a;
    --lh-ink-2: #16234a;
    --lh-blue-soft: #9fb4dc;
    --lh-gold: #d7b354;
    --lh-mist: #b9c3d5;
    --lh-mist-2: #8f9bb4;
    --lh-line: rgba(255, 255, 255, 0.12);
    --lh-ok: #7fd1a9;
    --lh-ease: cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    padding: calc(var(--header-height, 100px) + 40px) 0 0;
    overflow: hidden;
    background: var(--lh-ink);
    color: #fff;
    text-align: left;
}

#inicio.hero-lsoft::before,
#inicio.hero-lsoft::after {
    content: none;
}

/* Red de puntos: discreta, a la derecha, detrás de la tarjeta */
#inicio.hero-lsoft #tsparticles {
    position: absolute;
    top: var(--header-height, 100px);
    left: 38%;
    width: 62%;
    height: calc(100% - var(--header-height, 100px));
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}

#inicio.hero-lsoft .lh-wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#inicio.hero-lsoft .lh-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    padding-block: 40px 88px;
}

#inicio.hero-lsoft h1 {
    max-width: none;
    margin: 0;
    color: #fff;
    font-family: var(--font-main);
    font-size: clamp(2.6rem, 4.6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
    animation: none;
}

#inicio.hero-lsoft .lh-h1-second {
    display: block;
    margin-top: 0.12em;
    color: #fff;
}

#inicio.hero-lsoft .lh-h1-second em {
    color: var(--lh-gold);
    font-style: normal;
}

#inicio.hero-lsoft .lh-lede {
    max-width: 34rem;
    margin: 28px 0 0;
    color: var(--lh-mist);
    font-size: 1.15rem;
    line-height: 1.65;
    animation: none;
    opacity: 1;
}

#inicio.hero-lsoft .lh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

#inicio.hero-lsoft .lh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms var(--lh-ease), border-color 180ms var(--lh-ease);
}

#inicio.hero-lsoft .lh-btn:focus-visible {
    outline: 2px solid var(--lh-gold);
    outline-offset: 3px;
}

#inicio.hero-lsoft .lh-btn--gold {
    background: var(--lh-gold);
    color: var(--lh-ink);
}

#inicio.hero-lsoft .lh-btn--gold:hover {
    background: #e3c67c;
}

#inicio.hero-lsoft .lh-btn--line {
    border-color: rgba(255, 255, 255, 0.34);
    color: #eef1f6;
}

#inicio.hero-lsoft .lh-btn--line:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

#inicio.hero-lsoft .lh-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 44px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--lh-line);
    list-style: none;
    color: var(--lh-mist);
    font-size: 0.95rem;
}

#inicio.hero-lsoft .lh-creds li {
    padding: 0 20px;
    border-left: 1px solid var(--lh-line);
}

#inicio.hero-lsoft .lh-creds li:first-child {
    padding-left: 0;
    border-left: 0;
}

#inicio.hero-lsoft .lh-creds strong {
    color: #fff;
    font-weight: 600;
}

#inicio.hero-lsoft .lh-num {
    font-variant-numeric: tabular-nums;
}

/* Resumen del mes */
#inicio.hero-lsoft .lh-statement {
    padding: 28px 30px 20px;
    border: 1px solid var(--lh-line);
    border-radius: 12px;
    background: var(--lh-ink-2);
    box-shadow: 0 24px 60px rgba(4, 9, 24, 0.35);
}

#inicio.hero-lsoft .lh-statement-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lh-line);
}

#inicio.hero-lsoft .lh-statement-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

#inicio.hero-lsoft .lh-statement-head span,
#inicio.hero-lsoft .lh-statement-foot span {
    color: var(--lh-mist-2);
    font-size: 0.82rem;
}

#inicio.hero-lsoft .lh-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

#inicio.hero-lsoft .lh-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--lh-line);
}

#inicio.hero-lsoft .lh-row-label {
    color: var(--lh-mist);
    font-size: 0.95rem;
}

#inicio.hero-lsoft .lh-row-value {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: right;
    transition: color 600ms var(--lh-ease);
}

#inicio.hero-lsoft .lh-row-value.is-bump {
    color: var(--lh-gold);
}

#inicio.hero-lsoft .lh-row-sub {
    grid-column: 1 / -1;
    color: var(--lh-mist-2);
    font-size: 0.85rem;
}

#inicio.hero-lsoft .lh-row-sub b {
    color: var(--lh-gold);
    font-weight: 600;
}

#inicio.hero-lsoft .lh-aging {
    grid-column: 1 / -1;
    display: flex;
    gap: 3px;
    height: 6px;
    margin-top: 6px;
}

#inicio.hero-lsoft .lh-aging span {
    border-radius: 2px;
    transform-origin: left center;
}

#inicio.hero-lsoft .lh-aging .is-ok {
    flex: 78;
    background: var(--lh-blue-soft);
}

#inicio.hero-lsoft .lh-aging .is-late {
    flex: 22;
    background: var(--lh-gold);
}

/* Último comprobante: el momento animado de la tarjeta */
#inicio.hero-lsoft .lh-latest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--lh-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

#inicio.hero-lsoft .lh-latest.is-entering > * {
    animation: lhSlide 400ms var(--lh-ease);
}

#inicio.hero-lsoft .lh-latest-doc {
    display: grid;
    min-width: 0;
}

#inicio.hero-lsoft .lh-latest-num {
    color: #e6ebf4;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

#inicio.hero-lsoft .lh-latest-client {
    overflow: hidden;
    color: var(--lh-mist-2);
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#inicio.hero-lsoft .lh-latest-amount {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

#inicio.hero-lsoft .lh-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 104px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background-color 400ms var(--lh-ease), color 400ms var(--lh-ease);
}

#inicio.hero-lsoft .lh-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

#inicio.hero-lsoft .lh-status.is-sending {
    background: rgba(215, 179, 84, 0.12);
    color: var(--lh-gold);
}

#inicio.hero-lsoft .lh-status.is-done {
    background: rgba(127, 209, 169, 0.12);
    color: var(--lh-ok);
}

#inicio.hero-lsoft .lh-statement-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
}

/* Aviso de FSoft al pie del hero: banda más clara con filo dorado */
#inicio.hero-lsoft .lh-fsoft {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(215, 179, 84, 0.35);
    background: #1a2954;
}

#inicio.hero-lsoft .lh-fsoft .lh-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    padding-top: 22px;
    padding-bottom: 22px;
}

#inicio.hero-lsoft .lh-fsoft-text {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--lh-mist);
    font-size: 1.02rem;
    line-height: 1.5;
}

#inicio.hero-lsoft .lh-fsoft-text svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--lh-gold);
    stroke-width: 1.8;
}

#inicio.hero-lsoft .lh-fsoft-text strong {
    color: #fff;
    font-weight: 600;
}

#inicio.hero-lsoft .lh-fsoft-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(215, 179, 84, 0.6);
    border-radius: 6px;
    color: var(--lh-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 180ms var(--lh-ease), border-color 180ms var(--lh-ease), transform 120ms ease;
}

#inicio.hero-lsoft .lh-fsoft-link:hover {
    border-color: var(--lh-gold);
    background: rgba(215, 179, 84, 0.1);
}

#inicio.hero-lsoft .lh-fsoft-link:focus-visible {
    outline: 2px solid var(--lh-gold);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #inicio.hero-lsoft .lh-fsoft-text {
        align-items: flex-start;
        font-size: 0.95rem;
    }

    #inicio.hero-lsoft .lh-fsoft-link {
        width: 100%;
        justify-content: center;
    }
}

/* Entrada única al cargar */
@media (prefers-reduced-motion: no-preference) {
    #inicio.hero-lsoft .lh-row {
        animation: lhRise 700ms var(--lh-ease) backwards;
    }

    #inicio.hero-lsoft .lh-row:nth-child(1) { animation-delay: 120ms; }
    #inicio.hero-lsoft .lh-row:nth-child(2) { animation-delay: 200ms; }
    #inicio.hero-lsoft .lh-row:nth-child(3) { animation-delay: 280ms; }
    #inicio.hero-lsoft .lh-row:nth-child(4) { animation-delay: 360ms; }

    #inicio.hero-lsoft .lh-aging span {
        animation: lhFill 900ms var(--lh-ease) 450ms backwards;
    }
}

@keyframes lhRise {
    from { transform: translateY(8px); }
    to { transform: none; }
}

@keyframes lhFill {
    from { transform: scaleX(0); }
    to { transform: none; }
}

@keyframes lhSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { transform: none; }
}

@media (max-width: 1240px) {
    #inicio.hero-lsoft .lh-statement-head {
        flex-direction: column;
    }

    #inicio.hero-lsoft .lh-latest {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #inicio.hero-lsoft .lh-latest-amount {
        display: none;
    }
}

@media (max-width: 1023px) {
    #inicio.hero-lsoft #tsparticles {
        display: none;
    }

    #inicio.hero-lsoft .lh-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-block: 32px 64px;
    }
}

@media (max-width: 600px) {
    #inicio.hero-lsoft {
        padding-top: calc(var(--header-height, 100px) + 8px);
    }

    #inicio.hero-lsoft .lh-wrap {
        padding: 0 16px;
    }

    #inicio.hero-lsoft .lh-grid {
        padding-block: 24px 56px;
    }

    #inicio.hero-lsoft .lh-actions {
        flex-direction: column;
    }

    #inicio.hero-lsoft .lh-btn {
        width: 100%;
    }

    #inicio.hero-lsoft .lh-creds {
        flex-direction: column;
        gap: 8px;
    }

    #inicio.hero-lsoft .lh-creds li {
        padding: 0;
        border-left: 0;
    }

    #inicio.hero-lsoft .lh-statement {
        padding: 22px 18px 16px;
    }

    #inicio.hero-lsoft .lh-statement-head {
        flex-direction: column;
    }

    #inicio.hero-lsoft .lh-latest {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #inicio.hero-lsoft .lh-latest-amount {
        display: none;
    }
}

/* =========================================================
   Movimiento y luz (inicio)
   Una entrada con autoría en el hero; el resto, apariciones
   breves al hacer scroll y respuestas sutiles al pasar el mouse.
   ========================================================= */

/* Fondo del hero: sombra abajo a la izquierda, sin luz */
#inicio.hero-lsoft {
    background:
        radial-gradient(900px 620px at 4% 108%, rgba(4, 9, 26, 0.75), transparent 62%),
        linear-gradient(180deg, #111c3a 0%, #111c3a 52%, #0d1631 100%);
}

#inicio.hero-lsoft #tsparticles {
    left: 46%;
    width: 54%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

@media (prefers-reduced-motion: no-preference) {
    /* Entrada del hero: el titular se descubre línea a línea, luego el resto */
    #inicio.hero-lsoft .lh-h1-first,
    #inicio.hero-lsoft .lh-h1-second {
        display: block;
        animation: lhReveal 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    #inicio.hero-lsoft .lh-h1-second {
        animation-delay: 140ms;
    }

    #inicio.hero-lsoft .lh-lede,
    #inicio.hero-lsoft .lh-actions,
    #inicio.hero-lsoft .lh-creds {
        animation: lhFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    #inicio.hero-lsoft .lh-lede { animation-delay: 320ms; }
    #inicio.hero-lsoft .lh-actions { animation-delay: 420ms; }
    #inicio.hero-lsoft .lh-creds { animation-delay: 540ms; }

    #inicio.hero-lsoft .lh-statement {
        animation: lhCard 900ms cubic-bezier(0.16, 1, 0.3, 1) 260ms backwards;
    }

    #inicio.hero-lsoft .lh-row:nth-child(1) { animation-delay: 420ms; }
    #inicio.hero-lsoft .lh-row:nth-child(2) { animation-delay: 500ms; }
    #inicio.hero-lsoft .lh-row:nth-child(3) { animation-delay: 580ms; }
    #inicio.hero-lsoft .lh-row:nth-child(4) { animation-delay: 660ms; }

    #inicio.hero-lsoft .lh-aging span {
        animation-delay: 760ms;
    }
}

@keyframes lhReveal {
    from {
        clip-path: inset(-0.2em 0 calc(100% + 0.2em) 0);
        transform: translateY(0.35em);
    }

    to {
        clip-path: inset(-0.2em 0 -0.2em 0);
        transform: none;
    }
}

@keyframes lhFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lhCard {
    from {
        opacity: 0;
        transform: translateY(18px);
        box-shadow: 0 0 0 rgba(4, 9, 24, 0);
    }

    to {
        opacity: 1;
        transform: none;
        box-shadow: 0 24px 60px rgba(4, 9, 24, 0.35);
    }
}

/* Apariciones al hacer scroll (solo si el script lo habilita) */
.js-reveal .fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms), transform 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.js-reveal .fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Módulos: cascada breve, todo el grupo en menos de medio segundo */
.js-reveal .module-overview-card.fade-in {
    --reveal-delay: 0ms;
    transition:
        opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
        border-color 200ms ease,
        box-shadow 200ms ease;
}


/* Beneficios: la lista aparece en orden cuando entra su bloque */
.js-reveal .benefits-text .benefits-list li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .benefits-text.visible .benefits-list li {
    opacity: 1;
    transform: none;
}

.js-reveal .benefits-text.visible .benefits-list li:nth-child(1) { transition-delay: 150ms; }
.js-reveal .benefits-text.visible .benefits-list li:nth-child(2) { transition-delay: 230ms; }
.js-reveal .benefits-text.visible .benefits-list li:nth-child(3) { transition-delay: 310ms; }
.js-reveal .benefits-text.visible .benefits-list li:nth-child(4) { transition-delay: 390ms; }

.js-reveal .benefits-visual .shape-inner {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1) 200ms, transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 200ms;
}

.js-reveal .benefits-visual.visible .shape-inner {
    opacity: 1;
    transform: none;
}

/* Tarjetas de módulos: la tarjeta no se mueve; responde el borde y aparece una flecha */
.module-overview-card {
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.module-overview-card:hover {
    transform: none;
    border-color: #b9c8e2;
    box-shadow: 0 10px 26px rgba(17, 28, 58, 0.08);
}

.module-overview-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-overview-card h3::after {
    content: "→";
    color: #c69a2d;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.module-overview-card:hover h3::after,
.module-overview-card:focus-visible h3::after {
    opacity: 1;
    transform: none;
}

.module-overview-card .icon-box i,
.module-overview-card .icon-box svg {
    transition: color 200ms ease;
}

/* Botones: un leve hundimiento al hacer clic */
.btn,
#inicio.hero-lsoft .lh-btn {
    transition-property: background-color, border-color, color, box-shadow, transform;
    transition-duration: 180ms;
}

.btn:active,
#inicio.hero-lsoft .lh-btn:active,
#inicio.hero-lsoft .lh-fsoft-link:active {
    transform: translateY(1px);
}

/* Formulario: el foco llega con una transición suave */
.form-group input,
.form-group textarea {
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}


/* Utilidad accesible solo para lectores de pantalla y semántica */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
