/* Variables NIDRA CLEAN CORPORATE */
:root {
    --primary: #004b87;
    --primary-light: #0066b8;
    --accent: #20c997;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px rgba(0, 75, 135, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark); background-color: #ffffff; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Tipografía */
.text-gradient { color: var(--primary); }
.highlight-text { color: var(--primary); font-weight: 700; }
.section-title { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--primary); margin-bottom: 12px; }
.section-subtitle { color: var(--gray); font-size: 18px; font-weight: 400; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center;}

/* --- NAVBAR APPLE-STYLE GLASSMORPHISM --- */
/* Saturación y blur para ese toque de cristal esmerilado real */
.navbar { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo Aumentado */
.logo-img { height: 55px; width: auto; display: block; transition: var(--transition); }
.logo-img:hover { transform: scale(1.05); opacity: 0.9; }

.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--light); color: var(--primary) !important; padding: 10px 20px; border-radius: 8px; font-weight: 600 !important; border: 1px solid var(--border); }
.btn-nav:hover { background: var(--primary); color: white !important; }
.btn-nav:active, .btn-primary:active, .btn-secondary:active, .btn-submit:active { transform: scale(0.97); } /* Efecto pulsación */

/* --- HERO SECTION --- */
.clean-hero { position: relative; padding: 200px 0 120px; background: #ffffff; overflow: hidden; text-align: center; }
.hero-glow-light { position: absolute; width: 800px; height: 800px; top: -30%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(0,75,135,0.06) 0%, rgba(32,201,151,0.03) 40%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 75, 135, 0.08); color: var(--primary); padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(0, 75, 135, 0.1); }
.hero h1 { font-size: 64px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; letter-spacing: -2px; color: var(--dark); }
.hero p { font-size: 20px; color: var(--gray); margin-bottom: 40px; font-weight: 400; max-width: 650px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }

/* Botones Principales */
.btn-primary { background: var(--primary); color: white; padding: 16px 32px; border-radius: 12px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 75, 135, 0.2); }
.btn-primary:hover { background: var(--dark); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); }
.btn-secondary { background: white; color: var(--primary); padding: 16px 32px; border-radius: 12px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; border: 1px solid var(--border); transition: var(--transition); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.btn-secondary:hover { border-color: var(--primary); background: var(--light); transform: translateY(-3px); }

/* --- ECOSISTEMA BENTO --- */
.ecosistema { padding: 100px 0; background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bento-card { background: white; padding: 50px; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(0, 75, 135, 0.2); }
.card-icon { font-size: 48px; color: var(--primary); margin-bottom: 24px; }
.bento-card h3 { font-size: 28px; margin-bottom: 16px; line-height: 1.2; color: var(--dark); }
.bento-card p { color: var(--gray); font-size: 16px; }

/* --- VERTICALES & MOCKUPS FLOTANTES --- */
.verticales { padding: 120px 0; background: white; }
.project-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--light); padding: 50px; border-radius: 24px; border: 1px solid var(--border); margin-bottom: 40px; transition: var(--transition); }
.project-split:hover { box-shadow: var(--shadow-soft); }
.project-split.reverse { direction: rtl; }
.project-split.reverse > * { direction: ltr; }

.v-card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px;}
.v-icon { font-size: 40px; color: var(--primary); }
.v-badge { background: rgba(0, 75, 135, 0.1); color: var(--primary); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.project-content h4 { font-size: 32px; margin-bottom: 16px; color: var(--dark); letter-spacing: -0.5px; }
.project-content p { color: var(--gray); font-size: 16px; line-height: 1.8; }

.card-actions { display: flex; gap: 12px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border); }
.btn-card { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.btn-card.primary { background: var(--primary); color: white; border: none; }
.btn-card.primary:hover { background: var(--dark); }
.btn-card.outline { background: white; color: var(--dark); border: 1px solid var(--border); }
.btn-card.outline:hover { border-color: var(--primary); color: var(--primary); }

.floating-mockup { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,75,135,0.15)); }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Mockups CSS */
.dashboard-mockup-light { width: 100%; height: 300px; background: white; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.mockup-header-light { height: 40px; background: var(--light); border-bottom: 1px solid var(--border); }
.mockup-body-light { display: flex; flex: 1; }
.mockup-sidebar-light { width: 20%; background: #ffffff; border-right: 1px solid var(--border); }
.mockup-main-light { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #f8fafc; }
.mockup-chart-light { height: 100px; background: linear-gradient(180deg, rgba(0,75,135,0.1) 0%, transparent 100%); border-radius: 8px; border-bottom: 3px solid var(--primary); }
.mockup-grid-light { display: flex; gap: 15px; flex: 1; }
.mockup-grid-light span { flex: 1; background: white; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

.mobile-mockup-light { width: 220px; height: 440px; background: white; border-radius: 30px; border: 6px solid var(--primary); margin: 0 auto; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px var(--border); }
.mobile-notch-light { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 20px; background: var(--primary); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.mobile-content-light { width: 80%; text-align: center; }
.mobile-line-light { height: 8px; background: var(--light); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 12px; }
.line-1 { width: 100%; }
.line-2 { width: 70%; margin: 0 auto 30px; }
.mobile-btn-light { height: 40px; width: 100%; background: var(--accent); border-radius: 20px; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; }

/* --- HOJA DE RUTA --- */
.equipo { padding: 100px 0; background: var(--light); border-top: 1px solid var(--border); }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.roadmap-card { background: white; padding: 40px 30px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); transition: var(--transition); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.roadmap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--primary); }
.roadmap-card.active { border-color: var(--primary); background: rgba(0, 75, 135, 0.03); }
.roadmap-year { display: inline-block; background: var(--light); color: var(--gray); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.roadmap-card.active .roadmap-year { background: var(--primary); color: white; border-color: var(--primary); }
.roadmap-card strong { display: block; font-size: 20px; color: var(--dark); margin-bottom: 10px; }
.roadmap-card p { color: var(--gray); font-size: 14px; }

/* --- CONTACTO & FORMULARIO --- */
.contacto { padding: 100px 0 120px; background: white; }
.contact-box { background: white; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.contact-info { background: var(--primary); color: white; padding: 60px; }
.contact-info h2 { font-size: 36px; margin-bottom: 20px; color: white; }
.contact-info p { color: rgba(255,255,255,0.8); margin-bottom: 40px; font-size: 16px; }
.contact-details { list-style: none; }
.contact-details li { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 16px; }
.contact-details i { color: var(--accent); font-size: 24px; }
.contact-form-wrapper { padding: 60px; background: white; }
form { display: flex; flex-direction: column; gap: 20px; }

/* Apple-style Focus Ring para Inputs */
.input-group input, .input-group select, .input-group textarea { 
    width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 12px; 
    font-family: inherit; font-size: 15px; background: var(--light); transition: var(--transition); color: var(--dark); 
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { 
    outline: none; border-color: var(--primary); background: white; 
    box-shadow: 0 0 0 4px rgba(0,75,135,0.15); /* El famoso Focus Ring */
}

/* BOTÓN DE ENVIAR (¡Arreglado y vitaminado!) */
.btn-submit { 
    background: var(--primary); 
    color: white; 
    padding: 16px 32px; 
    border-radius: 12px; 
    font-family: inherit;
    font-weight: 600; 
    font-size: 16px; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    width: 100%; 
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 75, 135, 0.2);
}
.btn-submit:hover { 
    background: var(--dark); 
    transform: translateY(-2px); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); 
}

/* --- FOOTER --- */
footer { background: var(--light); padding: 40px 0; border-top: 1px solid var(--border); color: var(--gray); font-size: 14px;}
.footer-container { display: flex; justify-content: space-between; align-items: center; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 48px; }
    .bento-grid, .roadmap-grid, .contact-box { grid-template-columns: 1fr; }
    .project-split { grid-template-columns: 1fr; gap: 40px; }
    .project-visual { display: none; }
    .nav-links { display: none; } 
}
@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .hero { padding: 140px 0 80px; }
    .hero-btns { flex-direction: column; }
    .contact-info, .contact-form-wrapper { padding: 40px 24px; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
}