*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Estilos para el contenedor del carousel */
.carousel-container {
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
}

/* Asegura que el carousel ocupe todo el contenedor */
#carouselExampleInterval {
    width: 100%;
    height: 100%;
}

/* Hace que el carousel-inner ocupe toda la altura */
.carousel-inner {
    height: 100%;
    overflow: hidden;
}

/* Hace que cada item del carousel ocupe toda la altura */
.carousel-item {
    height: 100%;
    position: relative;
}
.login-container img{}

/* Imagen del carousel */
.carousel-image {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.carousel-image.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hace que las imágenes ocupen todo el espacio del slider */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video del carousel */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-video.show {
    opacity: 1;
    z-index: 2;
}

/* Transición fade mejorada */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Estilo específico para slides con contain */
.slide-contain img {
    object-fit: contain !important;
    background-color: #000;
}

/* Overlay con gradiente radial negro */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 1) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Contenedor para texto/imagen sobre el slider */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 4;
    text-align: left;
    color: white;
    pointer-events: none;
    width: auto;
    max-width: 50%;
}

/* Logo o imagen sobre el slider */
.carousel-content img {
    max-width: 600px;
    width: 100%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

/* Estilos específicos para imágenes pequeñas que necesitan ser más grandes */
.carousel-content img.Subservience {
    max-width: 800px !important;
    min-width: 600px;
}

.carousel-content img.culpa {
    max-width: 700px;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 1400px) {
    .carousel-content {
        max-width: 60%;
    }
    
    .carousel-content img {
        max-width: 500px;
    }
    
    .carousel-content img.Subservience {
        max-width: 650px !important;
        min-width: 500px;
    }
}

@media (max-width: 992px) {
    .carousel-content {
        left: 3%;
        max-width: 70%;
    }
    
    .carousel-content img {
        max-width: 400px;
    }
    
    .carousel-content img.Subservience {
        max-width: 500px !important;
        min-width: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-content {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 80%;
    }
    
    .carousel-content img {
        max-width: 350px;
    }
    
    .carousel-content img.Subservience {
        max-width: 400px !important;
        min-width: 300px;
    }
}
/* Ocultar contenido cuando el video se está reproduciendo */
.carousel-item .carousel-content {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.carousel-item .carousel-content.hide-content {
    opacity: 0;
    pointer-events: none;
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0,);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* MUY IMPORTANTE: debe ser mayor que el z-index del carousel */
    animation: fadeIn 0.3s ease-in-out;
}

.login-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenedor del Login */
.login-container {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    padding: 60px 70px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Título del Login */
.login-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    background: #454545;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: #8c8c8c;
}

/* Botón Principal */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #f40612 0%, #d40812 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer del Formulario */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #b3b3b3;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #fff;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #8c8c8c;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

/* Botones Sociales */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-facebook:hover {
    border-color: #1877F2;
}

/* Link de Registro */
.signup-link {
    text-align: center;
    margin-top: 30px;
    color: #8c8c8c;
    font-size: 14px;
}

.signup-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Términos */
.terms {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.5;
}

.terms a {
    color: #fff;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 24px;
    }
}
/* Ajuste del contenedor para el logo */
.login-container {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    padding: 30px 50px 40px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh; /* Altura máxima en lugar de fija */
    overflow-y: auto; /* Scroll si el contenido es muy largo */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.4s ease-out;
}

/* Logo en el Login */
.login-container > img {
    display: block;
    margin: 0 auto 20px;
    max-width: 120px; /* Reducido para ahorrar espacio */
    width: 100%;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

/* Título del Login - Reducido */
.login-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Formulario - Espaciado optimizado */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

/* Botón Principal */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

/* Footer del Formulario */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #8c8c8c;
}

/* Botones Sociales */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    width: 100%;
    padding: 11px;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Link de Registro */
.signup-link {
    text-align: center;
    margin-top: 20px;
    color: #8c8c8c;
    font-size: 13px;
}

/* Términos */
.terms {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #8c8c8c;
    line-height: 1.4;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .login-container {
        padding: 25px 40px 35px;
        max-height: 90vh;
    }
    
    .login-container > img {
        max-width: 110px;
        margin-bottom: 18px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 18px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .login-container {
        padding: 20px 25px 30px;
        max-height: 92vh;
        width: 95%;
    }
    
    .login-container > img {
        max-width: 100px;
        margin-bottom: 15px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-social {
        padding: 10px;
        font-size: 12px;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .login-container {
        padding: 15px 20px 25px;
        max-height: 95vh;
    }
    
    .login-container > img {
        max-width: 90px;
        margin-bottom: 12px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .divider {
        margin: 15px 0;
    }
    
    .signup-link {
        margin-top: 15px;
        font-size: 12px;
    }
}

/* Personalización del scrollbar para el login */
.login-container::-webkit-scrollbar {
    width: 6px;
}

.login-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.login-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.login-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}