/* ============================================
   LANDING PAGE + MODAL RESPONSIVE PROFESIONAL
   SENDA UCV - CSS OPTIMIZADO CON TARJETAS FLOTANTES CORREGIDAS
   ============================================ */

/* ============================================
   RESET Y VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ucv-azul: #003DA5;
    --ucv-rojo: #ED1C24;
    --ucv-celeste: #00A9E0;
    --ucv-gris: #4A5568;
    --ucv-blanco: #FFFFFF;
    --ucv-negro: #1A202C;
    --dark-bg: #0a0e27;
    --dark-surface: #141829;
    --modal-radius: 16px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Messina', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: var(--ucv-blanco);
    width: 100%;
    position: relative;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.main-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ucv-celeste);
    letter-spacing: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-ucv {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-ucv:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ucv-rojo);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--ucv-blanco);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--ucv-blanco);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    width: 100%;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    margin-top: 80px;
}

.hero-content {
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(237, 28, 36, 0.05));
    border: 1px solid rgba(237, 28, 36, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--ucv-celeste);
    margin-bottom: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(237, 28, 36, 0.1); }
    50% { box-shadow: 0 0 30px rgba(237, 28, 36, 0.2); }
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--ucv-blanco) 0%, var(--ucv-celeste) 50%, var(--ucv-rojo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--ucv-rojo);
    color: var(--ucv-blanco);
    box-shadow: 0 10px 40px rgba(237, 28, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(237, 28, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--ucv-blanco);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ucv-celeste);
    transform: translateY(-3px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   HERO VISUAL - TARJETAS FLOTANTES OPTIMIZADAS
   ============================================ */
.hero-visual {
    position: relative;
    z-index: 2;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Base card styles optimizados - SIN SUPERPOSICIÓN */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    width: 220px;
    min-height: 120px;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform-origin: center;
    will-change: transform, opacity;
    contain: layout style paint;
}

.float-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000 !important;
}

/* ============================================
   DISTRIBUCIÓN CIRCULAR MATEMÁTICA PERFECTA
   Elimina completamente las superposiciones
   ============================================ */

/* Centro: Bolsa de Trabajo (card-3) - TARJETA PRINCIPAL */
.card-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    width: 240px;
    min-height: 140px;
    animation: float 8s ease-in-out infinite;
}

/* Distribución circular de 6 tarjetas alrededor del centro */
/* Radio de 180px desde el centro */

.card-1 {
    /* 0° - Top */
    top: calc(50% - 180px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    animation: float 8s ease-in-out infinite 0s;
}

.card-2 {
    /* 60° - Top Right */
    top: calc(50% - 90px);
    left: calc(50% + 155px);
    transform: translate(-50%, -50%);
    z-index: 8;
    animation: float 8s ease-in-out infinite 1s;
}

.card-4 {
    /* 120° - Bottom Right */
    top: calc(50% + 90px);
    left: calc(50% + 155px);
    transform: translate(-50%, -50%);
    z-index: 7;
    animation: float 8s ease-in-out infinite 2s;
}

.card-5 {
    /* 180° - Bottom */
    top: calc(50% + 180px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    animation: float 8s ease-in-out infinite 3s;
}

.card-6 {
    /* 240° - Bottom Left */
    top: calc(50% + 90px);
    left: calc(50% - 155px);
    transform: translate(-50%, -50%);
    z-index: 5;
    animation: float 8s ease-in-out infinite 4s;
}

.card-7 {
    /* 300° - Top Left */
    top: calc(50% - 90px);
    left: calc(50% - 155px);
    transform: translate(-50%, -50%);
    z-index: 4;
    animation: float 8s ease-in-out infinite 5s;
}

/* Floating animation optimizada */
@keyframes float {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-15px) rotate(1deg);
    }
}

/* Card content */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ucv-celeste), var(--ucv-azul));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
}

/* Se ocultan métricas */
.metric-grid, .metric {
    display: none !important;
}

/* Progress bar optimizada */
.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 1.5px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ucv-celeste), var(--ucv-rojo));
    box-shadow: 0 0 6px rgba(0,169,224,0.4);
    border-radius: 1.5px;
    animation: progress-grow 2s ease-out forwards;
}

.progress-fill[data-progress="92"] { width: 92%; }
.progress-fill[data-progress="100"] { width: 100%; }
.progress-fill[data-progress="89"] { width: 89%; }
.progress-fill[data-progress="95"] { width: 95%; }
.progress-fill[data-progress="88"] { width: 88%; }
.progress-fill[data-progress="90"] { width: 90%; }

@keyframes progress-grow {
    from { width: 0%; }
    to { width: var(--progress, 100%); }
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--ucv-celeste);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--ucv-rojo);
    bottom: -150px;
    left: -100px;
    animation-delay: 3s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ucv-celeste), var(--ucv-blanco));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.footer-text {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ============================================
   MODAL SPLIT-SCREEN RESPONSIVE 60/40
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container - 60/40 Split Desktop - FULLSCREEN */
.modal-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 60% 40%;
    overflow: hidden;
    animation: modalSlideIn 0.5s var(--transition-smooth);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* LEFT SIDE 60% - Dark Theme Info - MISMO BACKGROUND QUE LANDING */
.modal-left {
    position: relative;
    background: #0a0e27;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
    height: 100vh;
}

/* Canvas animado para el modal */
.modal-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.modal-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 400px;
}

/* Brand Section */
.modal-brand {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--transition-smooth);
}

.modal-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.modal-logo svg {
    width: 100%;
    height: 100%;
}

.modal-brand-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--ucv-celeste) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-brand-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-top: 0.5rem;
    color: var(--ucv-celeste);
}

/* Features List */
.modal-features-list {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s var(--transition-smooth) forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-item::before {
    content: attr(data-icon);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Modal Stats */
.modal-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    animation: fadeInUp 1s var(--transition-smooth) 0.5s backwards;
}

.stat-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ucv-rojo);
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* RIGHT SIDE 40% - Formularios - BACKGROUND BLANCO */
.modal-right {
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    height: 100vh;
    max-height: 100vh;
}

/* Close button mejorado */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f2f5;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--ucv-rojo);
    transform: rotate(90deg);
}

.modal-close:hover svg {
    color: white;
}

.modal-close svg {
    color: #6c757d;
    transition: color 0.3s ease;
}

/* Form Container */
.modal-form-container {
    width: 100%;
    max-width: 420px;
    margin-top: auto;
    margin-bottom: auto;
}

/* Tabs mejorados con indicador rojo */
.modal-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 0;
    padding: 4px;
    position: relative;
}

.modal-tab {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.modal-tab:hover {
    color: #212529;
}

.modal-tab.active,.modal-tab.active>span {
    color: white !important;
    background: var(--ucv-rojo);
}

.tab-indicator {
    display: none;
}

/* Form Content */
.modal-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.modal-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.floating-label {
    position: relative;
}

.floating-label input,
.floating-label select {
    width: 100%;
    padding: 1.1rem 0.9rem 0.6rem 0.9rem;
    border: 2px solid #e0e6ed;
    border-radius: 0;
    font-size: 0.85rem;
    background: #fff;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.floating-label label {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    color: #8a8d91;
    font-size: 0.85rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 0.25rem;
}

.floating-label input:focus,
.floating-label input:not(:placeholder-shown),
.floating-label select:focus,
.floating-label select:valid {
    border-color: var(--ucv-rojo);
    outline: none;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label select:focus ~ label,
.floating-label select:valid ~ label {
    top: -0.2rem;
    left: 0.7rem;
    font-size: 0.65rem;
    color: var(--ucv-rojo);
    font-weight: 600;
}

.form-error {
    display: none;
    color: var(--ucv-rojo);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.65rem;
    color: #8a8d91;
    margin-top: 0.25rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox mejorado */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ucv-rojo);
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper.terms label {
    font-size: 0.7rem;
}

.link-terms {
    color: var(--ucv-rojo);
    text-decoration: none;
    font-weight: 600;
}

.link-terms:hover {
    text-decoration: underline;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.link-forgot {
    color: var(--ucv-rojo);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-forgot:hover {
    text-decoration: underline;
}

/* Submit Button - Rojo UCV */
.btn-submit {
    width: 100%;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-red,.btn-primary-red>span {
    background: var(--ucv-rojo);
    color: white !important;
}

.btn-primary-red:hover {
    background: #ed1c24;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(237, 28, 36, 0.25);
}

.btn-primary-red:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.btn-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.form-divider {
    position: relative;
    text-align: center;
    margin: 1.2rem 0;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e6ed;
}

.form-divider span {
    position: relative;
    padding: 0 1rem;
    background: white;
    color: #8a8d91;
    font-size: 0.8rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social span {
    color: #495057;
}

.btn-social:hover {
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-social.google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.05);
}

.btn-social.linkedin:hover {
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.05);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.2rem;
}

.form-footer span {
    color: #6c757d;
    font-size: 0.75rem;
}

.link-switch {
    background: none;
    border: none;
    color: var(--ucv-rojo);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.link-switch:hover {
    text-decoration: underline;
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: success-scale 0.6s ease-out;
}

@keyframes success-scale {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Message Toast */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 350px;
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.message-success {
    background: #28a745;
    color: white;
}

.message-error {
    background: var(--ucv-rojo);
    color: white;
}

.message-info {
    background: var(--ucv-celeste);
    color: white;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN OPTIMIZADO
   ============================================ */

/* Large Desktop (1200px+) */
@media (min-width: 1201px) {
    .floating-cards {
        height: 700px;
    }
    
    .float-card {
        width: 240px;
    }
}

/* Desktop (969px - 1200px) */
@media (max-width: 1200px) {
    .floating-cards {
        height: 580px;
    }

    .float-card {
        width: 200px;
        padding: 1rem;
    }

    /* Reduce radio para pantallas menores */
    .card-1 { top: calc(50% - 150px); }
    .card-2 { 
        top: calc(50% - 75px); 
        left: calc(50% + 130px); 
    }
    .card-4 { 
        top: calc(50% + 75px); 
        left: calc(50% + 130px); 
    }
    .card-5 { top: calc(50% + 150px); }
    .card-6 { 
        top: calc(50% + 75px); 
        left: calc(50% - 130px); 
    }
    .card-7 { 
        top: calc(50% - 75px); 
        left: calc(50% - 130px); 
    }
}

/* Tablet (768px - 968px) */
@media (max-width: 968px) {
    .mobile-menu {
        display: block;
    }

    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        padding: 1rem;
        flex-direction: column;
    }

    .nav-actions.active {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* OCULTAR TARJETAS EN TABLET */
    .hero-visual {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Modal Tablet - FULLSCREEN */
    .modal-container {
        grid-template-columns: 65% 35%;
        width: 100vw;
        height: 100vh;
    }

    .modal-left {
        padding: 2rem;
    }

    .modal-brand-name {
        font-size: 2rem;
    }

    .modal-features-list {
        margin-bottom: 2rem;
    }

    .feature-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .feature-item span {
        font-size: 0.85rem;
    }

    .modal-stats {
        gap: 0.5rem;
    }

    .stat-bubble {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .modal-right {
        padding: 2rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    nav {
        padding: 1rem 3%;
    }

    .hero-section {
        padding: 0 3%;
        min-height: 100vh;
    }

    h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.8rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* TARJETAS COMO GRID EN MOBILE PEQUEÑO */
    .hero-visual {
        display: block !important;
    }
    
    .floating-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        height: auto;
        padding: 2rem 0;
        position: static;
    }

    .float-card {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        margin-bottom: 0;
    }

    .card-1 { animation-delay: 0.1s; }
    .card-2 { animation-delay: 0.2s; }
    .card-3 { animation-delay: 0.3s; }
    .card-4 { animation-delay: 0.4s; }
    .card-5 { animation-delay: 0.5s; }
    .card-6 { animation-delay: 0.6s; }
    .card-7 { animation-delay: 0.7s; }

    /* Modal Mobile - Stack vertical - FULLSCREEN */
    .modal-container {
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }

    /* Modal Left - Compacto en mobile */
    .modal-left {
        flex: 0 0 auto;
        min-height: auto;
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .modal-left-content {
        max-width: 100%;
    }

    .modal-brand {
        margin-bottom: 1.5rem;
    }

    .modal-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .modal-brand-name {
        font-size: 1.8rem;
    }

    .modal-brand-tagline {
        font-size: 0.75rem;
    }

    /* Features como lista horizontal en mobile */
    .modal-features-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .feature-item {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .feature-item::before {
        font-size: 1rem;
    }

    .feature-item span {
        font-size: 0.75rem;
    }

    /* Stats horizontal en mobile */
    .modal-stats {
        justify-content: space-between;
        margin-bottom: 0;
    }

    .stat-bubble {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    /* Modal Right - Scrollable en mobile */
    .modal-right {
        flex: 1;
        padding: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .modal-form-container {
        max-width: 100%;
    }

    .modal-tabs {
        margin-bottom: 1.5rem;
    }

    .modal-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-subtitle {
        font-size: 0.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .floating-label input,
    .floating-label select {
        padding: 0.95rem 0.8rem 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .floating-label label {
        font-size: 0.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .social-login {
        flex-direction: column;
    }

    .btn-social {
        padding: 0.8rem;
    }

    .form-footer {
        margin-top: 1rem;
    }

    /* Scrollbar personalizado para mobile */
    .modal-right::-webkit-scrollbar {
        width: 4px;
    }

    .modal-right::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modal-right::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
}

/* Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.6rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    /* Grid de una sola columna en pantallas muy pequeñas */
    .floating-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .float-card {
        padding: 1rem;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .card-subtitle {
        font-size: 0.65rem;
    }

    /* Modal adjustments for small screens */
    .modal-left {
        padding: 1.5rem 1rem;
    }

    .modal-brand-name {
        font-size: 1.5rem;
    }

    .modal-right {
        padding: 1rem;
    }

    .form-title {
        font-size: 1.05rem;
    }

    .floating-label input,
    .floating-label select {
        font-size: 0.75rem;
    }

    .btn-submit {
        padding: 0.8rem 1.4rem;
        font-size: 0.8rem;
    }
}

/* Medium Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .floating-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* Landscape Mobile - Optimizado para tarjetas */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-visual {
        display: block !important;
    }
    
    .floating-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
        height: auto;
    }
    
    .float-card {
        position: static !important;
        animation: none;
        transform: none !important;
    }

    .modal-container {
        display: grid;
        grid-template-columns: 65% 35%;
    }

    .modal-left {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
        padding: 1.5rem;
    }

    .modal-features-list {
        display: none;
    }

    .modal-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-right {
        padding: 1.5rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modal-container {
        box-shadow: 0 25px 100px rgba(0, 0, 0, 0.4);
    }

    .floating-label input,
    .floating-label select {
        border-width: 1.5px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.floating-cards {
    contain: layout;
}

.float-card {
    will-change: transform, opacity;
    contain: layout style paint;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* Debug Mode - Para desarrollo */
.debug-mode .float-card {
    border: 2px dashed #ff0080 !important;
    background: rgba(255, 0, 128, 0.1) !important;
}

.debug-mode .float-card::after {
    content: attr(class);
    position: absolute;
    top: -25px;
    left: 0;
    color: #ff0080;
    font-size: 0.6rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================
   ANIMATIONS DISABLED FOR REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .float-card {
        animation: none !important;
    }
}

/* ============================================
   DARK MODE SUPPORT - FORMULARIO BLANCO
   ============================================ */
@media (prefers-color-scheme: dark) {
    .modal-right {
        background: #ffffff !important;
        color: #1a1a1a !important;
    }

    .floating-label input,
    .floating-label select {
        background: #ffffff !important;
        border-color: #e0e6ed !important;
        color: #1a1a1a !important;
    }

    .floating-label label {
        background: #ffffff !important;
        color: #1a1a1a !important;
    }

    .form-divider span {
        background: #ffffff !important;
        color: #6c757d !important;
    }

    .modal-tabs {
        background: #f8f9fa !important;
    }

    .btn-social {
        background: #ffffff !important;
        border-color: #e0e6ed !important;
        color: #1a1a1a !important;
    }
}

/* ============================================
   EXTRA: MEJORAS ADICIONALES
   ============================================ */

/* Hover states mejorados para tarjetas */
.float-card {
    transition: all 0.4s var(--transition-smooth);
}

.float-card:hover {
    transform: translate(-50%, -50%) translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1000 !important;
}

/* Animación de entrada escalonada */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Loading states para formularios */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Improved focus states */
.floating-label input:focus,
.floating-label select:focus {
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

/* Better checkbox styling */
.checkbox-wrapper input[type="checkbox"]:focus {
    outline: 2px solid rgba(237, 28, 36, 0.3);
    outline-offset: 2px;
}

/* Enhanced button interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

/* Subtle card entrance animations when in view */
.float-card.animate-in {
    animation: cardEnter 0.8s var(--transition-smooth) forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

/* =========================================
   CAMPOS ESPECÍFICOS PARA EMPRESAS
   ========================================= */
.empresa-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--ucv-rojo);
    transition: all 0.3s ease;
}

.empresa-fields .form-group {
    margin-bottom: 1rem;
}

.empresa-fields .form-hint {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Animación suave para mostrar/ocultar campos de empresa */
.empresa-fields {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}