:root {
    --primary: #FF5722;
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--light); color: var(--dark); overflow-x: hidden; }

/* --- PRELOADER --- */
#loader-wrapper {
    position: fixed; inset: 0; background: #fff; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}
.loader-container { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.logo-3d-scene { position: relative; perspective: 1000px; display: flex; flex-direction: column; align-items: center; }
.main-loader-logo {
    width: 120px;
    filter: drop-shadow(2px 2px 0px rgba(255,255,255,0.8)) drop-shadow(10px 20px 30px rgba(0,0,0,0.15));
    animation: floatingHero 3s infinite ease-in-out;
}
.logo-shadow-floor {
    width: 70px; height: 10px; background: rgba(0,0,0,0.05);
    border-radius: 50%; filter: blur(6px); margin-top: 10px;
    animation: shadowScale 3s infinite ease-in-out;
}
.progress-container { width: 150px; height: 2px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0; background: var(--primary); animation: progressFull 2s forwards; }
@keyframes floatingHero { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes shadowScale { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(0.6); opacity: 0.1; } }
@keyframes progressFull { 100% { width: 100%; } }

/* --- NAVBAR --- */
.navbar {
    position: fixed; width: 100%; top: 0; padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); z-index: 900;
    border-bottom: 1px solid #eee;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-3d-small { height: 40px; }
.nav-title { font-weight: 800; font-size: 1.1rem; }
.nav-subtitle { font-size: 0.65rem; color: var(--gray); display: block; }
.nav-sep { width: 1px; height: 25px; background: #ddd; margin: 0 15px; }
.logo-sentir { height: 24px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; margin-left: 20px; font-size: 0.9rem; }
.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 50px; }

/* --- HERO --- */
.hero { min-height: 100vh; padding: 150px 5% 80px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; }
.hero-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.3; }
.orb-1 { background: #ffe0d8; top: 0; right: 0; }
.orb-2 { background: #d8f3f0; bottom: 0; left: 0; }
h1 { font-size: 3.8rem; line-height: 1.1; margin: 1rem 0; letter-spacing: -2px; }
.accent { color: var(--primary); }
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; max-width: 500px; }
.btn-primary { background: var(--dark); color: #fff; padding: 15px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; display: inline-block; }
.btn-outline { border: 2px solid #ddd; padding: 15px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; display: inline-block; margin-left: 10px; color: var(--dark); }

/* --- CREDENCIAL 3D (LA MEJORADA) --- */
.hero-visual { display: flex; justify-content: center; perspective: 2000px; }
.card-3d {
    width: 420px; height: 260px; border-radius: 25px;
    background: linear-gradient(135deg, #1e293b 0%, #000 100%);
    padding: 35px; color: #fff; transform-style: preserve-3d;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}
.card-logo-3d { height: 50px; transform: translateZ(60px); filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); margin-bottom: 25px; }
.card-user h3 { font-size: 1.8rem; margin: 5px 0 20px; transform: translateZ(30px); }
.card-number { font-family: monospace; opacity: 0.8; transform: translateZ(20px); }

/* --- SERVICIOS --- */
.services { padding: 80px 5%; background: #fff; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { padding: 40px; border: 1px solid #eee; border-radius: 20px; transition: 0.3s; }
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.s-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* --- FOOTER --- */
.main-footer { background: #1a1c1e; color: #fff; padding: 80px 5% 30px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-links ul { list-style: none; margin-top: 20px; }
.footer-links a { color: #aaa; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; text-align: center; font-size: 0.9rem; color: #666; }

.loaded #loader-wrapper { transform: translateY(-100%); }