/* Variables globales */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f6f7ff 0%, #f1f4ff 100%);
}

/* Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Botones */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 45px;
    height: 45px;
    padding: 0;
    z-index: 999;
}

/* Formularios */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        text-align: center;
    }
}

/* Animaciones */
.icon-box {
    transition: transform 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* Accesibilidad */
.btn:focus, .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.hero-section {
    padding: 120px 0 80px; /* Ajusta el padding vertical */
}

.hero-section img {
    transition: transform 0.3s ease;
}

.hero-section img:hover {
    transform: scale(1.02);
}

.text-primary {
    color: rgb(3, 176, 222) !important;
}

.btn-primary {
    background-color: rgb(3, 176, 222) !important;
    border-color: rgb(3, 176, 222) !important;
}

.btn-outline-primary {
    color: rgb(3, 176, 222) !important;
    border-color: rgb(3, 176, 222) !important;
}

.btn-outline-primary:hover {
    background-color: rgb(3, 176, 222) !important;
    border-color: rgb(3, 176, 222) !important;
}

/* Estilos para el carrusel de la hero section */
#heroCarousel {
    overflow: hidden;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}

/* Mejorar visibilidad de los controles */
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(3, 176, 222, 0.8);
    border-radius: 50%;
    padding: 20px;
}

#heroCarousel .carousel-control-prev-icon:hover,
#heroCarousel .carousel-control-next-icon:hover {
    background-color: rgb(3, 176, 222);
}

/* Indicadores personalizados */
#heroCarousel .carousel-indicators button {
    background-color: rgb(3, 176, 222);
}

/* Hero Slider Styles */
.hero-section {
    margin-top: 0;
    padding-top: 0;
}

#heroSlider {
    height: 100vh;
    min-height: 600px;
}

#heroSlider .carousel-inner,
#heroSlider .carousel-item {
    height: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Overlay para mejor contraste */
#heroSlider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Caption personalizado */
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption-custom h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.carousel-caption-custom .text-highlight {
    color: rgb(3, 176, 222);
    text-shadow: 2px 2px 10px rgba(3, 176, 222, 0.5);
}

.carousel-caption-custom p {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

/* Botón hero personalizado */
.btn-hero {
    background-color: rgb(3, 176, 222);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(3, 176, 222, 0.4);
}

.btn-hero:hover {
    background-color: rgb(2, 150, 190);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 176, 222, 0.6);
    color: white;
}

/* Transición suave entre slides */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #heroSlider {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
    
    .carousel-caption-custom p {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
}