/* ==========================================================================
   TRUKINI DATA - DISEÑO PREMIUM (UI/UX 2026)
   Estilo: Clean Fintech / SaaS
   ========================================================================== */

   :root {
    /* Paleta de Colores Moderna y Limpia */
    --bg-dark: #09090b;          /* Fondo principal casi negro */
    --bg-card: #18181b;          /* Fondo de tarjetas */
    --bg-alt: #0f0f13;           /* Fondo alternativo para secciones */
    
    --accent-primary: #3b82f6;   /* Azul brillante moderno (Call to Actions) */
    --accent-hover: #2563eb;     /* Azul oscuro para hover */
    --accent-glow: rgba(59, 130, 246, 0.4); 
    
    --text-main: #f8fafc;        /* Texto principal blanco tiza */
    --text-muted: #94a3b8;       /* Texto secundario gris azulado */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.03);
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Resets y Tipografía --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
    font-family: 'Outfit', sans-serif;
}

/* ==========================================
   FONDO ANIMADO PREMIUM (ORBES DE LUZ)
   ========================================== */
.premium-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: -10%; left: -10%;
}

.orb-2 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -10%; right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    top: 40%; left: 40%;
    animation-duration: 25s;
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ==========================================
   NAVEGACIÓN (TOPBAR)
   ========================================== */
.premium-navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.premium-navbar.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* ==========================================
   SECCIÓN HERO / LOGIN CONTENEDOR
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5% 50px 5%;
    position: relative;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* Visuals Izquierda */
.login-visuals {
    flex: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(9, 9, 11, 0) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

.floating-element {
    animation: soft-float 6s ease-in-out infinite;
}

@keyframes soft-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 25px 20px rgba(59,130,246,0.2)); }
}

.showcase-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Formulario Derecha */
.login-form-area {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Inputs Modernos */
.input-modern-group {
    margin-bottom: 24px;
}

.input-modern-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.input-wrapper i.fa-user, .input-wrapper i.fa-lock {
    padding-left: 16px;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.toggle-pass {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-pass:hover {
    color: var(--text-main);
}

/* Captcha (Si lo usas en el futuro) */
.captcha-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}
.captcha-img-container {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 52px;
    padding: 5px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botones */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: none;
    animation: float-small 2s infinite;
    transition: var(--transition);
}
.scroll-down-btn:hover { color: var(--text-main); }
@keyframes float-small { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ==========================================
   SECCIONES INFORMATIVAS
   ========================================== */
.info-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-alt {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid de Características */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(39, 39, 42, 0.5);
}

.about-icon {
    width: 50px; height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Grid de Módulos (Plataforma) */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.module-card i {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.module-card:hover i {
    color: var(--accent-primary);
}

.module-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.module-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   FOOTER PREMIUM
   ========================================== */
.premium-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 30px;
}

.footer-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
}

.footer-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.footer-cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366; /* WhatsApp Green */
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-contact:hover {
    background: #1ebc5c;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   ANIMACIONES SCROLL REVEAL CLASE MUNDIAL
   ========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
    opacity: 0;
    transform: scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 450px;
    }
    
    .login-visuals {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px 20px 20px;
    }
    
    .hero-img {
        max-width: 220px;
    }
    
    .login-form-area {
        padding: 40px 30px;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header h2, .footer-cta h2 {
        font-size: 2rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .premium-navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
        background: rgba(9, 9, 11, 0.95);
    }
    
    .nav-links {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        padding-top: 130px;
    }
}

/* ==========================================
   ALINEACIÓN ESTÁNDAR DE ICONOS EN INPUTS
   ========================================== */

/* 1. Definir espaciado izquierdo limpio y estándar para todos los iconos */
.input-wrapper > i {
    margin-left: 1rem; /* Espaciado estándar de 16px desde el borde izquierdo del input */
    color: var(--text-muted);
}

/* 2. Forzar a todos los iconos FontAwesome a usar una "caja contenedora fija" estandarizada (FixedWidth) */
/* Esto asegura que los iconos más anchos o estrechos se centren en el mismo espacio */
.input-wrapper i.fas, .input-wrapper i.fab {
    width: 20px; /* Caja contenedora fija estándar para FontAwesome */
    display: flex;
    justify-content: center; /* Centrar icono real dentro de la caja fija */
    text-align: center;
}

/* 3. Ajuste fino de padding del texto del input para alineación estándar */
/* Aseguramos que el texto comience limpiamente después de la caja fija del icono estándar */
.input-wrapper input {
    padding-left: 10px !important; /* Ajuste de padding izquierdo estándar tras la caja del icono */
}