:root {
    --primary-color: #0052D4;
    --secondary-color: #65C7F7;
    --dark-blue: #001233;
    --text-color: #333;
    --light-gray: #f4f7f9;
    --white-color: #fff;
    --text-font: 'Poppins', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 15px;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: var(--text-font);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark-blue) !important;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 82, 212, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 82, 212, 1);
    }
}

.text-glow {
    animation: text-glow 3s infinite alternate;
}

.navbar .nav-link { font-weight: 600; color: var(--dark-blue); transition: color 0.3s; margin: 0 5px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary-color); }
.navbar .dropdown-menu { border-radius: var(--border-radius); border: none; box-shadow: var(--box-shadow); }
.navbar .dropdown-item { font-weight: 500; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 18, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    /* Usa la nueva imagen de fondo especificada */
    background: url("hero-background.png") no-repeat center center;
    background-size: cover;
    color: var(--white-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before { /* Overlay oscuro para legibilidad */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 18, 51, 0.6);
}

.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { color: var(--white-color); font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-section .lead { color: rgba(255, 255, 255, 0.9); }
.hero-section .btn-primary { background-color: var(--white-color); color: var(--primary-color); border: none; border-radius: 50px; padding: 15px 40px; font-weight: 700; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; }
.hero-section .btn-primary:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }

/* Secciones Generales */
section { padding: 80px 0; }
section h2 { font-size: 2.5rem; }

/* Service Cards con Iconos */
.service-card {
    background-color: var(--white-color);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.service-card:hover .icon-circle {
    transform: scale(1.1);
}

.service-icon {
    font-size: 50px;
    color: var(--white-color);
}

.service-card .card-title { margin-top: 20px; font-size: 1.25rem; }

/* Contact Form */
#contacto { background-color: var(--light-gray); }
#contacto .form-control { border-radius: var(--border-radius); padding: 15px; border: 1px solid #dee2e6; transition: border-color 0.3s, box-shadow 0.3s; }
#contacto .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(0, 82, 212, 0.25); }
#contacto .btn-primary { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); border: none; border-radius: 50px; padding: 15px 40px; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s; }
#contacto .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

/* Footer */
.footer { background-color: var(--dark-blue); }
.footer a:hover { color: var(--secondary-color) !important; text-decoration: none !important; }

/* Animaciones de Scroll */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    html { scroll-padding-top: 70px; }
    .hero-section { padding: 120px 0; height: auto; }
    section { padding: 60px 0; }
}

@media (max-width: 768px) {
    section h2 { font-size: 2rem; }
    .hero-section h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .btn-primary { padding: 12px 30px; font-size: 0.9rem; }
    section h2 { font-size: 1.8rem; }
}
