:root {
    --primary-blue: #003564;
    --secondary-blue: #0056b3;
    --accent-red: #d0415e;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 53, 100, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 53, 100, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark-gray); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.8); transition: all 0.6s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Topbar */
.topbar { background: var(--white); color: var(--dark-gray); font-size: 0.95rem; border-bottom: 3px solid #d1d5db; }
.topbar a { color: var(--dark-gray); text-decoration: none; }
.topbar i { color: var(--white); }
.topbar .social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-blue); margin-left: 8px; transition: all .2s ease; color: var(--white); }
.topbar .social a:hover { background: var(--accent-red); }

/* Navbar */
.navbar { background: var(--white); box-shadow: var(--shadow); padding: 0.6rem 0; transition: all 0.3s ease; }
.navbar.scrolled { padding: 0.3rem 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); }
.navbar-brand img { height: 60px; width: auto; transition: height 0.3s ease; }
.navbar.scrolled .navbar-brand img { height: 45px; }
.nav-link { color: var(--primary-blue) !important; font-weight: 500; margin: 0 0.5rem; transition: color 0.3s ease; position: relative; }
.nav-link:hover { color: var(--accent-red) !important; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px; background: var(--accent-red); transition: all 0.3s ease; transform: translateX(-50%); }
.nav-link:hover::after { width: 100%; }
.dropdown-menu { border: none; box-shadow: 0 8px 30px rgba(0,53,100,0.15); border-radius: 12px; padding: 0.5rem; min-width: 220px; }
.dropdown-item { border-radius: 8px; padding: 0.6rem 1rem; color: var(--primary-blue); font-weight: 500; transition: all 0.2s ease; }
.dropdown-item:hover { background: rgba(0,53,100,0.08); color: var(--accent-red); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: var(--white); padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; margin-bottom: 1.6rem; opacity: 0.95; }

/* Buttons */
.btn-primary { background: var(--accent-red); border: none; padding: 12px 30px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; color: white !important; }
.btn-primary:hover { background: #b8354e; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline-light { border: 2px solid var(--white); color: white !important; padding: 12px 30px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; }
.btn-outline-light:hover { background: var(--white); color: var(--primary-blue) !important; }

/* Quick Actions */
.quick-actions { background: var(--white); padding: 60px 0; margin-top: -40px; position: relative; z-index: 3; }
.quick-actions > .container > .row { display: flex !important; justify-content: center !important; }
.action-card { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 16px; padding: 2rem; text-align: center; box-shadow: 0 8px 32px rgba(0,53,100,0.15); transition: all 0.3s ease; height: 100%; border: 1px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; justify-content: space-between; }
.action-card:hover { transform: translateY(-12px) rotateX(5deg); box-shadow: 0 16px 48px rgba(0,53,100,0.25); }
.action-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; color: var(--white); font-size: 2rem; box-shadow: 0 4px 16px rgba(0,53,100,0.2); }
.action-card h4 { color: var(--primary-blue); font-weight: 700; margin-bottom: 0.6rem; }
.action-card p { color: #6c757d; margin-bottom: 1.2rem; }
.action-card .btn { margin-top: auto; }

/* Stagger Animation */
.stagger-animation > * { opacity: 0; transform: translateY(30px); }
.stagger-animation.visible > * { animation: staggerFadeIn 0.6s ease forwards; }
.stagger-animation.visible > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation.visible > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation.visible > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation.visible > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation.visible > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation.visible > *:nth-child(6) { animation-delay: 0.6s; }
@keyframes staggerFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Services */
.services { background: var(--light-gray); padding: 80px 0; position: relative; overflow: hidden; }
.services::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--primary-blue); transform: rotate(45deg); opacity: 0.15; z-index: 1; }
.services::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 150px; height: 150px; background: var(--accent-red); transform: rotate(45deg); opacity: 0.15; z-index: 1; }
.services .container { position: relative; z-index: 2; }
.service-card { background: var(--white); border-radius: 16px; padding: 2.5rem; height: 100%; box-shadow: 0 8px 32px rgba(0,53,100,0.12); transition: all 0.3s ease; border: 1px solid #eef1f4; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,53,100,0.2); }
.service-card img { width: 60px; height: 60px; margin-bottom: 1.5rem; object-fit: cover; }
.service-card h3 { color: var(--primary-blue); font-weight: 800; margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { color: #6c757d; line-height: 1.7; }

/* Stats */
.stats { background: var(--primary-blue); color: var(--white); padding: 80px 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 3.5rem; font-weight: 800; color: var(--accent-red); margin-bottom: 0.5rem; }
.stat-label { font-size: 1.1rem; opacity: 0.9; }

/* Hero Carousel */
.hero-carousel { position: relative; height: 48vh; min-height: 384px; }
.hero-slide { min-height: 48vh; display: flex; align-items: center; position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .hero-content { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.hero-slide.active .hero-content { opacity: 1; transform: translateY(0); }
.carousel-indicators { bottom: 30px; }
.carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; margin: 0 5px; transition: all 0.3s ease; cursor: pointer; }
.carousel-indicators button.active { background: var(--accent-red); transform: scale(1.2); }

/* Why Us */
.why { background: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.why::before { content: ''; position: absolute; top: 20px; left: -40px; width: 120px; height: 120px; background: var(--secondary-blue); transform: rotate(45deg); opacity: 0.12; z-index: 1; }
.why::after { content: ''; position: absolute; bottom: 40px; right: -60px; width: 180px; height: 180px; background: var(--primary-blue); transform: rotate(45deg); opacity: 0.12; z-index: 1; }
.why .container { position: relative; z-index: 2; }
.feature { background: var(--white); border-radius: 14px; padding: 1.8rem; height: 100%; box-shadow: var(--shadow); transition: .2s; border: 1px solid #eef1f4; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature i { color: var(--accent-red); font-size: 1.8rem; }
.feature h5 { color: var(--primary-blue); font-weight: 700; margin: 0.8rem 0; }
.feature p { color: #6c757d; }

/* News */
.news { background: var(--light-gray); padding: 80px 0; }
.news-card { border: 1px solid #eef1f4; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: all 0.3s ease; background: var(--white); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card img { height: 200px; width: 100%; object-fit: cover; }
.news-card .body { padding: 1.5rem; }
.news-card .date { color: var(--accent-red); font-size: 0.9rem; font-weight: 500; }
.news-card h5 { color: var(--primary-blue); margin: 0.5rem 0 1rem; }
.news-card p { color: #6c757d; margin-bottom: 1rem; }

/* References */
.references { background: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.references::before { content: ''; position: absolute; top: -30px; right: -30px; width: 160px; height: 160px; background: var(--accent-red); transform: rotate(45deg); opacity: 0.12; z-index: 1; }
.references .container { position: relative; z-index: 2; }
.reference-card { background: var(--white); border-radius: 12px; padding: 2rem; text-align: center; box-shadow: var(--shadow); height: 100%; transition: all 0.3s ease; }
.reference-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.reference-logo { height: 80px; width: auto; margin-bottom: 1rem; filter: grayscale(100%); transition: all 0.3s ease; }
.reference-card:hover .reference-logo { filter: grayscale(0%); }

/* Contact */
.contact { background: var(--light-gray); padding: 80px 0; position: relative; overflow: hidden; }
.contact .container { position: relative; z-index: 2; }
.contact-info { background: var(--white); border-radius: 16px; padding: 2rem; height: 100%; box-shadow: var(--shadow); }
.contact-info i { color: var(--accent-red); font-size: 1.5rem; }

/* Footer */
.footer { background: var(--dark-gray); color: var(--white); padding: 60px 0 30px; }
.footer h5 { color: var(--accent-red); margin-bottom: 1.2rem; }
.footer p, .footer a { color: #adb5bd; text-decoration: none; }
.footer a:hover { color: var(--accent-red); }
.social-links a { display: inline-block; width: 40px; height: 40px; background: var(--primary-blue); color: var(--white); border-radius: 50%; text-align: center; line-height: 40px; margin-right: 10px; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-red); transform: translateY(-2px); }

/* Helpers */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--primary-blue); font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; }
.section-title p { color: #6c757d; font-size: 1.05rem; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.whatsapp-btn { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; text-decoration: none; font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.3); transition: all 0.3s ease; animation: whatsappPulse 2s infinite; }
.whatsapp-btn:hover { background: #128c7e; transform: scale(1.1); color: white; }
@keyframes whatsappPulse { 0% { box-shadow: 0 4px 20px rgba(37,211,102,0.3); } 50% { box-shadow: 0 4px 20px rgba(37,211,102,0.6); } 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.3); } }

/* Geometric Shapes */
.geometric-shapes { position: absolute; inset: 0; z-index: 1; }
.shape { position: absolute; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2); animation: float 6s ease-in-out infinite; }
.shape-1 { width:80px; height:80px; top:20%; left:10%; transform:rotate(45deg); }
.shape-2 { width:60px; height:60px; top:60%; right:15%; border-radius:50%; animation-delay:1s; }
.shape-3 { width:100px; height:50px; top:30%; right:25%; transform:rotate(30deg); animation-delay:2s; }
.shape-4 { width:40px; height:40px; bottom:20%; left:20%; transform:rotate(15deg); animation-delay:3s; }
.shape-5 { width:70px; height:70px; top:10%; right:5%; border-radius:50%; animation-delay:4s; }
@keyframes float { 0%,100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(180deg); } }

/* Particles */
.particles-container { position: absolute; inset: 0; z-index: 1; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.8); border-radius: 50%; animation: particleFloat 8s linear infinite; }
.particle:nth-child(1) { left:10%; animation-delay:0s; animation-duration:6s; }
.particle:nth-child(2) { left:20%; animation-delay:1s; animation-duration:8s; }
.particle:nth-child(3) { left:30%; animation-delay:2s; animation-duration:7s; }
.particle:nth-child(4) { left:40%; animation-delay:3s; animation-duration:9s; }
.particle:nth-child(5) { left:50%; animation-delay:4s; animation-duration:6s; }
.particle:nth-child(6) { left:60%; animation-delay:5s; animation-duration:8s; }
.particle:nth-child(7) { left:70%; animation-delay:6s; animation-duration:7s; }
.particle:nth-child(8) { left:80%; animation-delay:7s; animation-duration:9s; }
.particle:nth-child(9) { left:90%; animation-delay:8s; animation-duration:6s; }
.particle:nth-child(10) { left:95%; animation-delay:9s; animation-duration:8s; }
@keyframes particleFloat { 0% { top:100%; opacity:0; transform:scale(0); } 10% { opacity:1; transform:scale(1); } 90% { opacity:1; transform:scale(1); } 100% { top:-10%; opacity:0; transform:scale(0); } }

/* Page Banner */
.page-banner { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: var(--white); padding: 100px 0 60px; text-align: center; }
.page-banner h1 { font-size: 2.5rem; font-weight: 800; }
.page-banner p { opacity: 0.9; font-size: 1.1rem; }

/* Wizard Styles */
.step-progress { position: relative; padding: 0; list-style: none; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.step-progress::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: #e2e8f0; z-index: 0; }
.step-item { position: relative; z-index: 1; text-align: center; width: 100%; }
.step-circle { width: 35px; height: 35px; background: #fff; border: 2px solid #e2e8f0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #64748b; font-weight: 700; margin-bottom: 0.5rem; transition: all 0.3s ease; }
.step-item.active .step-circle { border-color: var(--primary-blue); background: var(--primary-blue); color: white; box-shadow: 0 0 0 4px rgba(0,53,100,0.1); }
.step-item.completed .step-circle { border-color: #10b981; background: #10b981; color: white; }
.step-label { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.step-item.active .step-label { color: var(--primary-blue); font-weight: 700; }
.wizard-step { display: none; animation: fadeIn 0.5s; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.selection-card-input { display: none; }
.selection-card { display: block; background: white; border: 2px solid #e2e8f0; border-radius: 16px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s ease; height: 100%; }
.selection-card:hover { border-color: var(--primary-blue); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.selection-card-input:checked + .selection-card { border-color: var(--primary-blue); background: rgba(0,53,100,0.03); box-shadow: 0 0 0 4px rgba(0,53,100,0.1); }
.selection-card-icon { font-size: 3rem; color: #cbd5e0; margin-bottom: 1rem; transition: all 0.3s ease; }
.selection-card:hover .selection-card-icon, .selection-card-input:checked + .selection-card .selection-card-icon { color: var(--primary-blue); transform: scale(1.1); }
.selection-card-title { font-weight: 700; color: var(--primary-blue); font-size: 1.1rem; }
.upload-zone { border: 2px dashed #cbd5e0; border-radius: 12px; padding: 3rem 2rem; text-align: center; background: #f8fafc; transition: all 0.3s ease; cursor: pointer; }
.upload-zone:hover { border-color: var(--primary-blue); background: #f1f5f9; }
.upload-icon { font-size: 2.5rem; color: #94a3b8; margin-bottom: 1rem; }
.text-primary-dark { color: var(--primary-blue) !important; }

/* Category Section */
.category-section { position: relative; }
.category-section:nth-child(even) { background: var(--light-gray); }
.category-slider { scrollbar-width: thin; scrollbar-color: var(--primary-blue) transparent; }
.category-slider::-webkit-scrollbar { height: 6px; }
.category-slider::-webkit-scrollbar-track { background: transparent; }
.category-slider::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 3px; }
.content-area { color: var(--dark-gray); line-height: 1.8; }
.content-area h3, .content-area h4 { color: var(--primary-blue); margin: 1.5rem 0 1rem; font-weight: 700; }
.content-area p { margin-bottom: 1rem; }
.content-area ul, .content-area ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-area img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }

/* Mobile */
@media (max-width: 768px) {
    .fade-in, .slide-in-left, .slide-in-right, .scale-in, .stagger-animation > * { opacity: 1 !important; transform: none !important; animation: none !important; visibility: visible !important; }
    .hero h1 { font-size: 1.6rem !important; line-height: 1.3 !important; }
    .hero p { font-size: 0.95rem !important; }
    .stat-number { font-size: 2.5rem; }
    .hero { background: #003564 !important; height: auto !important; min-height: auto !important; padding-top: 100px !important; padding-bottom: 60px !important; }
    .hero-carousel { height: auto !important; min-height: 320px !important; }
    .hero-slide { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: auto !important; min-height: 320px !important; opacity: 0 !important; }
    .hero-slide.active { opacity: 1 !important; z-index: 5 !important; }
    .hero-slide .hero-content { opacity: 1 !important; transform: none !important; }
    .hero h1, .hero p { color: #ffffff !important; opacity: 1 !important; text-shadow: 0 2px 4px rgba(0,0,0,0.5); visibility: visible !important; }
    .hero::before, .particles-container, .geometric-shapes, .waves-container { display: none !important; }
    .whatsapp-float { bottom: 20px; right: 20px; }
    .whatsapp-btn { width: 50px; height: 50px; font-size: 24px; }
    .action-card { padding: 1.5rem; }
    .action-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}