body {
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(180deg, #4A148C 0%, #7B1FA2 100%);
    background-attachment: fixed;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.loaded {
    opacity: 1;
}


.btn-primary {
    background-color: #7B1FA2;
    border-color: #7B1FA2;
}

.btn-primary:hover {
    background-color: #6A1B9A;
    border-color: #6A1B9A;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #4A148C !important;
    border-color: #4A148C !important;
    box-shadow: 0 0 0 0.25rem rgba(123, 31, 162, 0.5) !important;
}


/* Estilos para el footer */
.footer {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Espacio para el footer */
body {
    margin-bottom: 60px;
}

.content {
    padding-bottom: 2rem;
}

/* Animación de caída para la página principal */
@keyframes fallIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.fall-element {
    opacity: 0;
    animation: fallIn 0.8s ease-out forwards;
}

/* Diferentes retrasos para escalonar la animación */
.fall-delay-1 {
    animation-delay: 0.2s;
}

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

.fall-delay-3 {
    animation-delay: 0.6s;
}

.fall-delay-4 {
    animation-delay: 0.8s;
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.jumbotron {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* Estilos para el logo */
.logo-img {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Animación para el quinto elemento con delay */
.fall-delay-5 {
    animation-delay: 1s;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500&family=Rajdhani:wght@400;500&family=Share+Tech+Mono&display=swap');

/* Estilos específicos para el modal de bienvenida */
#welcomeModal .modal-body {
    color: #212529;
    font-size: 16px;
}

#welcomeModal .modal-content {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, .2);
}

#welcomeModal .modal-title {
    color: #212529;
}

.logo-container {
    margin-top: 3rem;
    margin-bottom: 80px;
    /* Asegura espacio para que el logo no se solape con el footer */
    position: relative;
    z-index: 10;
}

.logo-img {
    margin-bottom: 0.5rem;
}

/* Efecto sutil al pasar el cursor, solo escala */
.logo-img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* Estilo tech para el texto del logo */
.tech-text {
    font-family: 'Orbitron', 'Rajdhani', 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    font-size: 1.2rem;
    margin-bottom: 0;
}


 /* Estilos para el carrusel */
 #projectsCarousel {
    background: rgba(26, 87, 176, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.carousel-item {
    padding: 20px 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators {
    bottom: -10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1a57b0;
    margin: 0 5px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    max-width: 340px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-weight: bold;
    color: #1a57b0;
}

/* Logo container */
.logo-container {
    margin-top: 2rem;
    margin-bottom: 20px; /* Espacio reducido entre el logo y el footer */
    position: relative;
    z-index: 10;
}

.logo-img {
    margin-bottom: 0.5rem;
}

.tech-text {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.container {
    max-width: 1600px !important;
}

/* Custom text opacity utilities */
.text-white-60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* AÑADIR AL FINAL DE TU ARCHIVO styles.css */

/* Fix para dropdowns del navbar */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
    display: none;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.navbar-nav .dropdown-menu.show {
    display: block !important;
}

.navbar-nav .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
}

.navbar-nav .dropdown-item.active {
    color: #fff !important;
    background-color: #7B1FA2 !important;
}

.navbar-nav .dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Fix específico para el z-index */
.navbar {
    z-index: 1030;
}

.navbar-nav .dropdown {
    position: static;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }
}
