/* Estilos Globales */
body {
    font-family: 'Geomanist', sans-serif;
    font-size: 1.1rem; /* Aumentar tamaño de fuente base */
    line-height: 1.6; /* Mejorar legibilidad */
}

h3 {
    font-size: 1.75rem; /* Aumentar ligeramente los encabezados h3 */
}

p {
    font-size: 1.15rem;
    font-weight: 500; /* Texto con más cuerpo */
}

.custom-list li {
    font-size: 1.15rem;
    font-weight: 600; /* Elementos de lista más destacados */
}

/* Barra de Navegación */
.custom-navbar {
    background-color: #4449db;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1030; /* Asegurar que se mantenga encima */
    transition: background-color 0.3s ease; /* Transición suave */
}

.custom-navbar.scrolled {
    background-color: rgba(68, 73, 219, 0.85); /* Azul transparente */
    backdrop-filter: blur(5px); /* Opcional: añade un efecto de desenfoque al fondo */
}

.navbar-brand {
    line-height: 1.2;
}

/* Menú Desplegable */
.dropdown-menu {
    background-color: #4449db; /* Mismo color que el menú */
    border: none;
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item {
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem; /* Ajuste opcional para mayúsculas */
    padding: 10px 20px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #3a3dcc; /* Color más oscuro al pasar el mouse */
    color: white;
}

/* Sección Hero */
.hero-section {
    background: url('https://placehold.co/1920x1080/111/333?text=Camera+Setup') no-repeat center center/cover;
    height: 60vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Superposición para legibilidad */
}

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

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-primary {
    background-color: #4449db;
    border-color: #4449db;
}

.btn-primary:hover {
    background-color: #3a3dcc;
    border-color: #3a3dcc;
}

/* Lista Personalizada */
.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: black; /* O color primario si se prefiere */
    font-weight: bold;
}

/* Pie de Página */
footer {
    border-top: 1px solid #333;
}

footer a:hover {
    color: #4b4eff !important;
}

/* Sección del Carrusel */
.carousel-item {
    height: 100vh; transition: transform 1.2s ease-in-out;  /* Ajusta este valor (1.2s) para que pase más rápido o lento */
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .carousel-item {
        height: 50vh; /* Altura reducida en móviles */
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem; /* Texto más pequeño en móviles */
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Utilidades de color (Navbar) */
.text-navbar {
    color: #4449db !important;
}

.btn-navbar {
    background-color: #4449db;
    border-color: #4449db;
    color: white;
}

.btn-navbar:hover {
    background-color: #3a3dcc;
    border-color: #3a3dcc;
    color: white;
}

/* Cabecera de Páginas Internas */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurecer imagen */
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out forwards;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación al carrusel */
.carousel-item.active .carousel-caption h2 {
    animation: fadeInUp 1s ease-out forwards;
}

.carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 1s ease-out 0.3s forwards; /* Retraso para el botón */
    opacity: 0; /* Inicialmente invisible para que funcione el retraso */
}
