
/* 🎨 LANDING PAGE COMPLETA - Estilos específicos para /landing
   Variables y reset eliminados - usa fyc-design-system.css
   Optimizado: 2025-11-20
*/

/* ===== VARIABLES ESPECÍFICAS LANDING ===== */
/* PAXAPOS VERSION - Usa variables de colors.css de Paxapos */
:root {
    /* Mapeo a variables de colors.css de Paxapos */
    --landing-primary: var(--color-blue);
    --landing-secondary: var(--color-navy);
    --landing-accent: var(--color-red);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

/* ===== ACCESIBILIDAD ===== */
/* Skip to main content link - visible on focus */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--landing-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    top: 1rem;
}

.skip-link:focus {
    left: 1rem;
    outline: 3px solid var(--landing-secondary);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible styles para mejor accesibilidad */
*:focus-visible {
    outline: 3px solid var(--landing-primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.landing-container {
    min-height: 100vh;
    position: relative;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== HEADER LOGO FIJO ===== */
.hero-logo-container {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
    animation: logoEntrance 1.2s ease-out;
}

.hero-logo {
    width: auto;
    height: 24px;
    filter: drop-shadow(0 4px 12px var(--color-blue-2));
}

/* Animaciones mágicas del logo - letra por letra */
.resto-letters path,
.digital-letters path {
    opacity: 0;
    animation: letterReveal 0.6s ease-out forwards;
    filter: drop-shadow(0 2px 4px var(--color-blue-3));
}

/* Delays progresivos para cada letra - secuencia mágica */
.letter-r {
    animation-delay: 0.1s;
}

.letter-e1 {
    animation-delay: 0.2s;
}

.letter-s {
    animation-delay: 0.3s;
}

.letter-t {
    animation-delay: 0.4s;
}

.letter-o {
    animation-delay: 0.5s;
}

.letter-d {
    animation-delay: 0.7s;
}

.letter-i1 {
    animation-delay: 0.8s;
}

.letter-g {
    animation-delay: 0.9s;
}

.letter-i2 {
    animation-delay: 1.0s;
}

.letter-t2 {
    animation-delay: 1.1s;
}

.letter-a {
    animation-delay: 1.2s;
}

.letter-l {
    animation-delay: 1.3s;
}

/* Accent mark con brillo especial */
.accent-mark {
    animation-delay: 0.6s;
    filter: drop-shadow(0 0 8px var(--color-red-5));
}

/* Efecto shimmer que pasa una sola vez al final */
.shimmer-overlay {
    opacity: 0;
    animation: shimmerPass 2s ease-in-out 1.5s forwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
        filter: blur(1px);
    }

    50% {
        transform: translateY(-2px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shimmerPass {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.4;
        transform: translateX(0%);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== MAIN LANDING ===== */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    height: 80vh;
}

/* ===== HERO TEXT ===== */
.hero-text {
    animation: fadeInUp 0.8s ease-out 0.5s both;
    padding-right: 1.5rem;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== HERO FEATURES ===== */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.feature-item:hover {
    background: var(--color-blue-1);
    transform: translateX(4px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--landing-primary);
    flex-shrink: 0;
}

/* ===== CTA CONTAINER ===== */
.cta-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--color-navy) 100%);
    color: white;
    box-shadow: 0 4px 16px var(--color-navy-3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--color-blue-1);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--landing-primary);
    border-color: var(--landing-primary);
}

.btn-secondary:hover {
    background: var(--landing-primary);
    color: white;
    text-decoration: none;
}

.btn-primary .icon,
.btn-secondary .icon {
    width: 20px;
    height: 20px;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out 0.7s both;
}

/* ===== CONTENEDOR VISUAL DE CARDS ===== */
.visual-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    perspective-origin: center center;
    overflow: visible;
    z-index: 10;
}

/* ===== CARDS FLOTANTES ===== */
.floating-element {
    position: absolute;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--color-white-9);
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 4px 20px var(--color-blue-1);
    border: 1px solid var(--color-blue-1);
    z-index: 20;
    opacity: 0;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--landing-primary);
    white-space: nowrap;
    width: max-content;
    max-width: 140px;
    height: auto;

    /* Solo transición para opacity, NO para transform */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Transición suave para cuando aparecen */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ANIMACIÓN DE FLOTACIÓN 3D ===== */
@keyframes professionalFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    20% {
        transform: translate3d(2px, -3px, 8px) rotateX(2deg) rotateY(-1deg) rotateZ(0.5deg) scale(1.02);
    }

    40% {
        transform: translate3d(-1px, 2px, 12px) rotateX(-1deg) rotateY(2deg) rotateZ(-0.5deg) scale(0.98);
    }

    60% {
        transform: translate3d(3px, 1px, 6px) rotateX(1.5deg) rotateY(-0.5deg) rotateZ(1deg) scale(1.01);
    }

    80% {
        transform: translate3d(-2px, -1px, 4px) rotateX(-0.5deg) rotateY(1.5deg) rotateZ(-0.3deg) scale(0.99);
    }
}

@keyframes professionalFloatCenterX {

    0%,
    100% {
        transform: translateX(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    25% {
        transform: translateX(-50%) translate3d(1px, -2px, 6px) rotateX(1deg) rotateY(-1.5deg) rotateZ(0.3deg) scale(1.01);
    }

    50% {
        transform: translateX(-50%) translate3d(-2px, 1px, 10px) rotateX(-1.5deg) rotateY(1deg) rotateZ(-0.5deg) scale(0.99);
    }

    75% {
        transform: translateX(-50%) translate3d(2px, 0px, 4px) rotateX(0.5deg) rotateY(-0.5deg) rotateZ(0.8deg) scale(1.02);
    }
}

@keyframes professionalFloatCenterY {

    0%,
    100% {
        transform: translateY(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    30% {
        transform: translateY(-50%) translate3d(-1px, 0, 7px) rotateX(1.5deg) rotateY(1deg) rotateZ(-0.4deg) scale(0.98);
    }

    60% {
        transform: translateY(-50%) translate3d(2px, 0, 11px) rotateX(-1deg) rotateY(-1.5deg) rotateZ(0.6deg) scale(1.01);
    }

    90% {
        transform: translateY(-50%) translate3d(0px, 0, 3px) rotateX(0.5deg) rotateY(0.5deg) rotateZ(-0.2deg) scale(1);
    }
}

/* Variaciones aleatorias para cada card - SÚPER VISIBLES */
@keyframes float3D_1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    33% {
        transform: translate3d(8px, -6px, 15px) rotateX(5deg) rotateY(-4deg) rotateZ(2deg) scale(1.1);
    }

    66% {
        transform: translate3d(-6px, 8px, 12px) rotateX(-4deg) rotateY(5deg) rotateZ(-3deg) scale(0.9);
    }
}

@keyframes float3D_2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    25% {
        transform: translate3d(-8px, 4px, 18px) rotateX(-5deg) rotateY(6deg) rotateZ(3deg) scale(0.85);
    }

    75% {
        transform: translate3d(6px, -8px, 20px) rotateX(6deg) rotateY(-5deg) rotateZ(-4deg) scale(1.15);
    }
}

@keyframes float3D_3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    40% {
        transform: translate3d(10px, 6px, 16px) rotateX(4deg) rotateY(7deg) rotateZ(-5deg) scale(1.08);
    }

    80% {
        transform: translate3d(-8px, -4px, 10px) rotateX(-6deg) rotateY(-4deg) rotateZ(4deg) scale(0.88);
    }
}

@keyframes float3D_4 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    20% {
        transform: translate3d(12px, -8px, 22px) rotateX(7deg) rotateY(-6deg) rotateZ(5deg) scale(1.2);
    }

    60% {
        transform: translate3d(-4px, 10px, 14px) rotateX(-3deg) rotateY(8deg) rotateZ(-2deg) scale(0.8);
    }
}

/* Animaciones especiales para posiciones centradas - SÚPER DRAMÁTICAS */
@keyframes float3DCenterX {

    0%,
    100% {
        transform: translateX(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    25% {
        transform: translateX(-50%) translate3d(6px, -8px, 20px) rotateX(5deg) rotateY(-4deg) rotateZ(3deg) scale(1.15);
    }

    50% {
        transform: translateX(-50%) translate3d(-8px, 6px, 16px) rotateX(-6deg) rotateY(5deg) rotateZ(-4deg) scale(0.85);
    }

    75% {
        transform: translateX(-50%) translate3d(4px, 2px, 25px) rotateX(3deg) rotateY(-2deg) rotateZ(2deg) scale(1.05);
    }
}

@keyframes float3DCenterY {

    0%,
    100% {
        transform: translateY(-50%) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    30% {
        transform: translateY(-50%) translate3d(-10px, 0, 18px) rotateX(6deg) rotateY(7deg) rotateZ(-5deg) scale(0.8);
    }

    60% {
        transform: translateY(-50%) translate3d(8px, 0, 22px) rotateX(-7deg) rotateY(-5deg) rotateZ(6deg) scale(1.2);
    }

    90% {
        transform: translateY(-50%) translate3d(-3px, 0, 12px) rotateX(2deg) rotateY(3deg) rotateZ(-2deg) scale(1.1);
    }
}

/* ===== CARDS VISIBLES ===== */
.floating-element.card-visible {
    opacity: 1 !important;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* La animación se aplica via JavaScript para mayor control */
}

/* ===== POSICIONES FIJAS CON CSS - ALEJADAS DEL CENTRO ===== */
.floating-element.position-top-left {
    top: 10%;
    left: 8%;
    bottom: auto;
    right: auto;
}

.floating-element.position-top-center {
    top: 5%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%);
}

.floating-element.position-top-right {
    top: 10%;
    right: 8%;
    bottom: auto;
    left: auto;
}

.floating-element.position-center-left {
    top: 50%;
    left: 5%;
    bottom: auto;
    right: auto;
    transform: translateY(-50%);
}

.floating-element.position-center-right {
    top: 50%;
    right: 5%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
}

.floating-element.position-bottom-left {
    bottom: 10%;
    left: 8%;
    top: auto;
    right: auto;
}

.floating-element.position-bottom-center {
    bottom: 5%;
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
}

.floating-element.position-bottom-right {
    bottom: 10%;
    right: 8%;
    top: auto;
    left: auto;
}

/* ===== CENTRAL DASHBOARD ===== */
#central-dashboard {
    position: absolute;
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-blue-1), var(--color-navy-3));
    border-radius: 1rem;
    border: 2px solid var(--color-blue-3);
    backdrop-filter: var(--backdrop-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10 !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--landing-primary);
}

/* ===== DECORACIONES DE FONDO ===== */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--color-blue-1),
            var(--color-blue-1));
    opacity: 0.7;
    filter: blur(80px);
    /* Much softer blobs */
    opacity: 0.4;
    /* Less intrusive */
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
    /* Slower pulse */
    pointer-events: none;
}

.bg-decoration-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.bg-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.bg-decoration-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* ===== MODAL DE VIDEO ===== */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black-9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.demo-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    position: relative;
    background: transparent;
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    border: 2px solid var(--color-white-1);
}

.demo-modal-close-floating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-bg-black);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.demo-modal-close-floating:hover {
    background: var(--color-black-9);
    transform: scale(1.1);
}

.video-mute-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-bg-black);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

/* ===== UTILITY CLASSES (Cleaned from inline) ===== */

/* Logo Typography */
.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-paxa {
    color: var(--color-blue);
}

.text-pos {
    color: var(--color-red);
}

/* Feature Images */
.feature-mockup-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}


.video-mute-toggle:hover {
    background: var(--color-black-9);
}

.demo-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
}

.demo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Videos responsive - Desktop muestra horizontal, Mobile muestra vertical */
.video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

/* Por defecto mostrar video desktop (horizontal) */
.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

/* En mobile mostrar video vertical y ocultar horizontal */
@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

    /* Ajustar aspect ratio para video vertical en mobile */
    .demo-video-container {
        padding-bottom: 177.78%;
        /* 9:16 aspect ratio para video vertical */
        max-height: 80vh;
    }

    .demo-modal-content {
        width: 95%;
        max-width: 400px;
    }
}

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

/* Optimización para laptops pequeñas 13-14" (1366px - 1440px) */
@media (max-width: 1440px) {
    .hero-content {
        gap: 2rem;
        height: 75vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-features {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .feature-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .cta-container {
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    .visual-container {
        max-width: 450px;
        height: 320px;
    }

    #central-dashboard {
        width: 180px;
        height: 110px;
        font-size: 0.85rem;
    }

    .floating-element {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .landing-container {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .landing-main {
        padding: 0 1rem;
        min-height: 100vh;
        height: auto;
    }

    .hero-logo-container {
        top: 1rem;
        left: 1rem;
    }

    .hero-logo {
        height: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        min-height: calc(100vh - 2rem);
        height: auto;
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }

    .hero-text {
        padding-right: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-headline {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-features {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .feature-item {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .cta-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding-bottom: 1rem;
        margin-top: auto;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Ocultar hero-visual en mobile */
    .hero-visual {
        display: none;
    }

    .visual-container {
        max-width: 300px;
        height: 220px;
        order: -1;
    }

    #central-dashboard {
        width: 120px;
        height: 70px;
        font-size: 0.75rem;
    }

    .floating-element {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        min-height: calc(100vh - 2rem);
        height: auto;
        padding-top: 3rem;
        padding-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .hero-headline {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-features {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .feature-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }

    .cta-container {
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .visual-container {
        max-width: 250px;
        height: 180px;
    }

    #central-dashboard {
        width: 100px;
        height: 60px;
        font-size: 0.7rem;
    }

    .floating-element {
        font-size: 0.65rem;
    }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-content {
        padding-top: 2.5rem;
    }

    .hero-headline {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .hero-features {
        gap: 0.25rem;
    }

    .feature-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.35rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Very short screens (landscape mode or small height) */
@media (max-height: 600px) {
    .landing-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .hero-content {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 1rem;
    }

    .hero-headline {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-features {
        display: none; /* Hide on very short screens to prioritize buttons */
    }

    .cta-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        max-width: none;
    }
}

/* ===== DYNAMIC BACKGROUND ===== */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but above bg */
    pointer-events: none;
}

/* ===== GLASSMORPHISM (RESTORED & IMPROVED) ===== */
.glass-panel {
    background: var(--color-bg-white-8);
    /* Higher opacity for readability */
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--color-white-5);
    box-shadow: 0 8px 32px var(--color-blue-1);
    /* Softer shadow */
}

.hero-text.glass-panel {
    position: relative;
    z-index: 20;
}

/* More impactful buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
    box-shadow: 0 4px 15px var(--color-blue-3);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--color-blue-5);
    transform: translateY(-3px);
}

/* =================================================================
   FEATURES SHOWCASE — Tabs verticales + imagen dinámica
   ================================================================= */

.features-showcase {
    padding: 6rem 2rem;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.features-showcase-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Header */
.features-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.features-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    background: var(--color-blue-1, #eff3ff);
    color: var(--color-blue, #244289);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.features-title strong {
    font-weight: 800;
    color: var(--color-blue, #244289);
}

/* Layout principal: tabs + panel */
.features-main {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ---- TABS ---- */
.features-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 2px solid #f0f0f0;
    padding-left: 0;
    margin: 0;
}

.features-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.1rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    margin-left: -2px;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s ease;
    color: #9ca3af;
    width: 100%;
}

.features-tab:hover {
    background: #f9fafb;
    color: #374151;
    border-left-color: #d1d5db;
}

.features-tab.active {
    background: #f0f4ff;
    color: var(--color-blue, #244289);
    border-left-color: var(--color-blue, #244289);
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
    transition: background 0.22s ease;
}

.features-tab.active .tab-icon {
    background: var(--color-blue-1, #eff3ff);
}

.features-tab.active .tab-icon svg {
    stroke: var(--color-blue, #244289);
}

.tab-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

.tab-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.tab-count {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 400;
}

.features-tab.active .tab-count {
    color: var(--color-blue, #244289);
    opacity: 0.7;
}

.tab-arrow {
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.features-tab.active .tab-arrow,
.features-tab:hover .tab-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ---- PANEL ---- */
.features-panel-wrap {
    position: relative;
    min-height: 500px;
}

.features-panel {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: featurePanelIn 0.35s ease both;
}

.features-panel.active {
    display: flex;
}

@keyframes featurePanelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Descripción del header de sección */
.features-header-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.hub-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.features-panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.features-panel-desc {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

.hub-panel-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

/* Variantes de color del tag */
.hub-tag-blue   { background: #eff3ff; color: var(--color-blue, #244289); }
.hub-tag-green  { background: #e6f4ef; color: #1a5c45; }
.hub-tag-orange { background: #fef3e2; color: #7a4f10; }
.hub-tag-purple { background: #f0ecfc; color: #4a2d90; }
.hub-tag-indigo { background: #edf0fa; color: #1e2d5a; }

/* ---- GRID DE MINI-CARDS ---- */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.85rem;
}

/* 2 columnas cuando el panel solo tiene 2 módulos */
.hub-cards-grid.hub-cards-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* ---- HUB CARD ---- */
.hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Card destacada (Buchón) */
.hub-card.hub-card-highlight {
    border-color: #c0a8f0;
    background: #f9f6ff;
}

.hub-card.hub-card-highlight:hover {
    border-color: #a070e0;
    box-shadow: 0 4px 20px rgba(160, 112, 224, 0.15);
}

/* Icono circular */
.hub-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Variantes de color del icono */
.hub-icon-blue   { background: #eff3ff; color: var(--color-blue, #244289); }
.hub-icon-green  { background: #e6f4ef; color: #1a5c45; }
.hub-icon-orange { background: #fef3e2; color: #7a4f10; }
.hub-icon-purple { background: #f0ecfc; color: #4a2d90; }
.hub-icon-indigo { background: #edf0fa; color: #1e2d5a; }
.hub-icon-red    { background: #faeef0; color: #7a1520; }
.hub-icon-gold   { background: #fdf7e8; color: #5a3e10; }

.hub-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.hub-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ---- PUNTOS FUERTES ---- */
.hub-strong-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.25rem;
}

.hub-point {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* ---- RESPONSIVE PANEL GRID ---- */
@media (max-width: 900px) {
    .hub-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-cards-grid.hub-cards-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hub-card {
        padding: 0.9rem;
    }

    .hub-card-icon {
        width: 34px;
        height: 34px;
    }
}

/* ---- MÉTRICAS ANIMADAS ---- */
.features-metrics {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 2rem 2.5rem;
    background: #f9fafb;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    padding: 0.5rem 1rem;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue, #244289);
    letter-spacing: -0.03em;
    line-height: 1;
}

.metric-label {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-divider {
    width: 1px;
    height: 2.5rem;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 900px) {
    .features-main {
        grid-template-columns: 1fr;
    }

    .features-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid #f0f0f0;
        overflow-x: auto;
        padding-bottom: 0;
        gap: 0;
        /* scroll horizontal sin scrollbar visible */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .features-tabs::-webkit-scrollbar {
        display: none;
    }

    .features-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 0.5rem 0.5rem 0 0;
        margin-left: 0;
        margin-bottom: -2px;
        white-space: nowrap;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        padding: 0.75rem 1rem;
        min-width: 120px;
    }

    .features-tab.active {
        border-bottom-color: var(--color-blue, #244289);
        border-left-color: transparent;
        background: transparent;
    }

    .tab-arrow {
        display: none;
    }

    .tab-text {
        align-items: center;
    }

    .features-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .metric-divider {
        display: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .features-showcase {
        padding: 4rem 1.25rem;
    }

    .features-title {
        font-size: 1.5rem;
    }

    .features-panel-title {
        font-size: 1.1rem;
    }

    .features-tab {
        min-width: 105px;
        padding: 0.6rem 0.75rem;
    }

    .tab-name {
        font-size: 0.78rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .features-metrics {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem 1rem;
    }
}

/* =================================================================
   FOOTER - Premium Landing Page
   ================================================================= */
.landing-footer {
    background: #ffffff;
    color: #374151;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.footer-logo-paxa {
    color: #0f172a;
}

.footer-logo-pos {
    background: linear-gradient(135deg, var(--color-blue) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b7280;
    max-width: 280px;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.88rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-blue);
    padding-left: 4px;
    text-decoration: none;
}

.footer-link-highlight {
    color: var(--color-blue);
    font-weight: 600;
}

.footer-link-highlight:hover {
    color: var(--color-navy);
}

.footer-cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(36, 66, 137, 0.25);
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36, 66, 137, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: #9ca3af;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #374151;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }

    .footer-brand {
        grid-column: span 1;
        flex-direction: column;
    }

    .footer-bottom {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
