:root {
    --primary: #5c7cfa;
    --primary-dark: #4263eb;
    --accent: #00d4ff;
    --whatsapp: #25d366;
    --text: #1a202c;
    --text-light: #4a5568;
    --glass: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Nunito', sans-serif; 
    color: var(--text); 
    background-color: #f8fafc; 
    overflow-x: hidden;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-content { text-align: center; }
.loader-logo { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.loader-logo span { color: var(--primary); }
.loader-bar {
    width: 120px; height: 4px; background: #edf2f7; margin: 0 auto;
    border-radius: 10px; position: relative; overflow: hidden;
}
.loader-bar::after {
    content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
    background: var(--primary); animation: loading 1.5s infinite;
}
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--whatsapp);
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }
.whatsapp-icon { width: 35px; fill: white; }

/* BACKGROUND BLOBS */
.liquid-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.blob { position: absolute; width: 600px; height: 600px; filter: blur(100px); border-radius: 50%; opacity: 0.35; animation: move 25s infinite alternate; }
.b1 { top: -10%; left: -5%; background: var(--primary); }
.b2 { bottom: -10%; right: -5%; background: var(--accent); animation-delay: -5s; }
.b3 { top: 30%; left: 25%; background: #a5b4fc; }
@keyframes move { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, 50px) scale(1.15); } }

/* GLASSMORPHISM */
.glass { 
    background: var(--glass); backdrop-filter: blur(20px); border-radius: 30px;
    border: 1px solid var(--border); box-shadow: var(--shadow); 
}

/* NAVBAR */
.navbar { position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%); width: 90%; padding: 0.7rem 2rem; z-index: 1000; transition: 0.4s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--text); }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 0.6rem 1.6rem; border-radius: 50px; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.badge { background: rgba(92, 124, 250, 0.1); color: var(--primary); padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin: 1.5rem 0; color: #0f172a; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; }
.btn-primary { 
    display: inline-block; padding: 1.1rem 2.5rem; background: var(--primary); color: white; 
    text-decoration: none; border: none; cursor: pointer; border-radius: 50px; font-family: inherit;
    font-weight: 700; transition: 0.3s; box-shadow: 0 10px 20px rgba(92, 124, 250, 0.3); 
}
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-dark); }
.btn-secondary { padding: 1.1rem 2rem; color: var(--text); text-decoration: none; font-weight: 700; transition: 0.3s; }

/* STATS */
.stats { margin-top: -50px; position: relative; z-index: 10; padding-bottom: 5rem; }
.stats-grid { display: flex; justify-content: space-around; align-items: center; padding: 3rem; }
.stat-item .number { font-size: 2.8rem; font-weight: 800; color: var(--primary); display: block; }
.divider { width: 1px; height: 50px; background: rgba(0,0,0,0.1); }

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 4rem; }
.subtitle { color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-top: 0.5rem; }
.underline { width: 60px; height: 4px; background: var(--primary); margin: 1rem auto; border-radius: 10px; }

/* SERVICES */
.services { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.card { padding: 3rem 2rem; text-align: center; transition: 0.4s; }
.card:hover { transform: translateY(-12px); background: white; }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }

/* FEATURE (POR QUÉ ELEGIRNOS) */
.feature { padding: 100px 2rem; }
.feature-grid { display: flex; justify-content: center; align-items: center; }
.feature-text { max-width: 800px; text-align: center; }
.check-list { list-style: none; margin-top: 2rem; display: inline-block; }
.check-list li { margin-bottom: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; text-align: left; }
.icon-check { color: var(--primary); font-weight: 900; }

/* FOOTER & FORM */
.footer { padding-bottom: 3rem; }
.footer-box { padding: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-bottom: 3rem; }

/* Espaciado solicitado en Footer */
.footer-info-section .logo { margin-bottom: 1.5rem; display: inline-block; }
.footer-slogan { margin-bottom: 2.5rem; color: var(--text-light); }
.contact-details .detail-item { margin-bottom: 1.5rem; }
.detail-item strong { display: block; margin-bottom: 5px; color: var(--primary); }

.contact-form h3 { font-size: 1.8rem; margin: 0.5rem 0 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1rem; border-radius: 15px; border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5); font-family: inherit; font-size: 0.95rem; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; }

#status { margin-top: 1rem; font-weight: 700; font-size: 0.9rem; padding: 0.8rem; border-radius: 12px; display: none; }
#status.success { display: block; color: #10b981; background: rgba(16, 185, 129, 0.1); }
#status.error { display: block; color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.btn-whatsapp-large {
    display: inline-block; padding: 1rem 2rem; background-color: var(--whatsapp);
    color: white; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; text-align: center;
}
.btn-whatsapp-large:hover { background-color: #128c7e; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.05); padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* ANIMACIONES */
.fade-up, .active { opacity: 0; transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.fade-up { transform: translateY(50px); }
.active { opacity: 1; transform: translate(0, 0); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .stats-grid { flex-direction: column; gap: 2rem; }
    .divider { display: none; }
    .footer-box { padding: 2rem; }
    .nav-links {
        position: absolute; top: 80px; right: -110%; width: 100%; flex-direction: column; 
        background: white; padding: 2rem; border-radius: 20px; transition: 0.4s; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    .nav-links.mobile-active { right: 0; }
}