/* Variables de colores corporativos */
:root {
    --primary-orange: #F36523;
    --secondary-gray: #818286;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background-color: white !important;
}

.navbar-brand .logo-metrix {
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-sistemas {
    color: var(--secondary-gray);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-top: -5px;
    letter-spacing: 2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.anniversary-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.text-orange {
    color: var(--primary-orange) !important;
}

.btn-orange {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e5581b;
    border-color: #e5581b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 101, 35, 0.3);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 400px;
}

.floating-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-orange) !important;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), #e5581b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

/* Access Cards */
.access-card {
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-orange) !important;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 101, 35, 0.2) !important;
}

.access-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-orange), #e5581b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.access-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Contact Section */
.contact-info .bi {
    font-size: 1.5rem;
}

.form-control:focus {
    background-color: var(--dark-bg);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(243, 101, 35, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-orange) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        height: 300px;
        margin-top: 50px;
    }
    
    .floating-icon {
        font-size: 3rem;
    }
    
    .service-icon,
    .access-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .access-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .floating-icon {
        font-size: 2rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
  font-family: 'Segoe UI', sans-serif;
}
#celebration-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.celebration-badge {
  background: #E97316;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.years-number {
  font-size: clamp(72px, 14vw, 130px);
  font-weight: 700;
  color: #E97316;
  line-height: 1;
  margin-bottom: 4px;
}
.celebration-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}
.celebration-title span { color: #E97316; }
.celebration-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 440px;
  margin-bottom: 32px;
  padding: 0 20px;
}
.celebration-btn {
  background: #E97316;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.celebration-btn:hover { background: #C96010; }
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}