@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #0052cc;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: #495057;
}

/* --- NUEVAS CLASES PARA ESPACIADO --- */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
    margin-bottom: 4rem;
}


/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: padding 0.3s ease;
}

.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero & Page Headers */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.jpg') no-repeat center center;
    background-size: cover;
    height: 60vh;
    min-height: 400px;
}

.page-header {
    background: linear-gradient(rgba(0, 23, 51, 0.7), rgba(0, 23, 51, 0.7)), url('../img/page-header-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 40vh;
    min-height: 300px;
}

/* --- NUEVA SECCIÓN DE IMAGEN --- */
.image-separator {
    background: linear-gradient(rgba(0, 23, 51, 0.6), rgba(0, 23, 51, 0.6)), url('../img/parallax-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Esto crea el efecto parallax */
}

.image-separator h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding-top: 4rem;
    padding-bottom: 4rem;
}


/* Button Styles */
.btn {
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.navbar .btn {
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0041a3;
    border-color: #003b94;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--dark-color);
}

.card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Testimonial Carousel Styles */
#testimonialCarousel .carousel-indicators {
    position: static;
    margin-top: 1.5rem;
}

#testimonialCarousel .carousel-indicators button {
    background-color: #ccc;
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
}

.testimonial-item .blockquote {
    font-style: italic;
    color: #6c757d;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 82, 204, 0.25);
}

/* Footer */
footer a.text-white-50:hover {
    color: white !important;
    text-decoration: underline;
}