@import url('https://fonts.googleapis.com/css2?family=Acme&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: url("../../factopia-images/backgrounds/bg_login.jpeg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #bf2327;
}

.efecto-caja {
    backdrop-filter: blur(10px);
    border: 3px solid #dd4b39;
    border-image: linear-gradient(to bottom, #bf2327, #D8CCCC) 1;
    box-shadow: 0px 0px 25px #893300;
}

.efecto-caja-central {
    backdrop-filter: blur(10px);
    border: 3px solid yellow;
    border-image: linear-gradient(to bottom, #D8CCCC, #cccccc) 1;
    box-shadow: 0px 0px 25px #893300;
    transition: all 0.3s;
}

.efecto-caja-footer {
    backdrop-filter: blur(10px);
    border: 3px solid yellow;
    border-image: linear-gradient(to bottom, #cccccc, #444450) 1;
    box-shadow: 0px 0px 25px #893300;
}

.efecto_mensaje {
    height: 50px;
    background: transparent
}

.login-button {
    background: #dd4b39;
    color: white;
    border-radius: 20px;
    width: 40%;
    border: 2px solid #dd4b39;
    padding: 0.4rem;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.login-button:hover {
    background: transparent;
    border: 2px solid white;
    backdrop-filter: blur(5px);
    box-shadow: 0px 0px 25px #893300;
    color: #58585A !important;
}

.select-login {
    border: 2px solid #dd4b39;
    background-color: #dd4b39;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.select-login:hover {
    background-color: transparent;
    border: 2px solid white;
    color: #dd4b39;
    box-shadow: 0px 0px 25px #893300;
    border-color: white;
}

.select-login:focus {
    box-shadow: none;
    outline: 0;
    border-color: #dd4b39;
}

.input-login:focus {
    box-shadow: none;
    outline: 0;
    border-color: #dd4b39;
}

.icono {
    margin-left: -30px;
    color: #dd4b39;
}

.logo-img {
    height: 100px;
    overflow: hidden;
}

.logo-img img {
    max-width: 80%;
    max-height: 80%;
    cursor: pointer;
}

.textlogin a,
.textenlace a,
.textenlace1 a {
    color: #bf2327 !important; /* El mismo rojo granate del resto del texto */
    text-shadow: 0px 0px 8px #ffffff, 0px 0px 3px #ffffff !important; /* Mantiene el halo de luz */
    cursor: pointer !important; /* Forzamos el cursor de la manita */
    text-decoration: none !important; /* Eliminamos el subrayado tosco inicial */
    font-weight: 700 !important;
    transition: all 0.25s ease-in-out !important; /* Transición suave de color */
}

/* 2. EFECTO HOVER: Mutación de color elástica al pasar el ratón por encima */
.textlogin a:hover,
.textenlace a:hover,
.textenlace1 a:hover {
    color: #ffffff !important; /* Mutación elástica a blanco puro */
    text-shadow: 0px 0px 8px #bf2327, 0px 0px 4px #000000 !important; /* Sombra granate de fondo */
    text-decoration: underline !important; /* Subrayado sutil clásico de navegación */
}

.form-group {
    margin-bottom: 1.25rem;
}

.container {
    max-height: 100vh !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* 3. VITAMINACIÓN DE CONTRASTE: Inyectamos un halo de luz blanca de fondo 
   para que tus textos rojos se lean con nitidez sobre cualquier tramo del background */
.card-header h1,
.card-header h6,
.card-body p,
.text-indicador-bienvenida,
.text-indicador-reset,
.text-indicador-solicitud,
.efecto_mensaje {
    color: #bf2327 !important; /* Mantenemos tu color corporativo original */
    text-shadow: 0px 0px 8px #ffffff, 0px 0px 3px #ffffff !important; /* Halo de luz blanca */
    font-weight: 700 !important; /* Forzamos grosor para Retail */
}

/* Saneamos el color del texto plano intermedio */
.card-body p.text-dark {
    color: #222222 !important;
    text-shadow: 0px 0px 6px #ffffff !important;
}

.text-indicador-login {
    color: #ffffff !important; /* Texto blanco puro para romper el negro */
    text-shadow: 0px 0px 8px #bf2327, 0px 0px 3px #000000 !important; /* Halo granate de contraste */
    font-size: 0.9rem !important;
    letter-spacing: 0.3px;
}

.texto-secundario-alerta {
    color: #222222 !important;
    text-shadow: 0px 0px 6px #ffffff !important;
    font-weight: 600 !important;
}

/* Forzamos que ambas imágenes compartan el mismo molde exacto una sobre otra */
.logo-interactivo-wrapper .logo-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* TRANSICIÓN SÉNIOR: Suaviza la escala, la sombra y la opacidad en 350ms */
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.35s ease-in-out,
        opacity 0.35s ease-in-out;
    will-change: transform, filter, opacity;
}

/* Estado Inicial de las capas */
.logo-interactivo-wrapper .logo-original {
    opacity: 1;
    z-index: 2;
}

.logo-interactivo-wrapper .logo-transmutado {
    opacity: 0;
    z-index: 1;
}

/* =======================================================================
   EL MOMENTO HOVER: Activamos el despegue tridimensional
   ======================================================================= */
.logo-interactivo-wrapper:hover .logo-imagen {
    /* 1. Elevación elástica: aumenta un 6% de su tamaño original */
    transform: scale(1.06) translateY(-4px);
    /* 2. Sombra premium de cristal: genera un halo difuminado suave en el fondo */
    filter: drop-shadow(0 12px 15px rgba(207, 45, 58, 0.18));
}

/* 3. Operamos la fusión cruzada de las dos marcas de forma simultánea */
.logo-interactivo-wrapper:hover .logo-original {
    opacity: 0;
}

.logo-interactivo-wrapper:hover .logo-transmutado {
    opacity: 1;
}

.contenedor-pie-fichbox {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* NUEVA ASIGNACIÓN DE PESOS ATÓMICOS PARA PC */
.contenedor-pie-fichbox .item-copyright {
    flex: 0 0 30% !important; /* Aumenta al 30% */
    width: 30% !important;
    text-align: left !important;
    color: #dd4b39 !important;
    margin: 0 !important;
}

.contenedor-pie-fichbox .item-eslogan {
    flex: 0 0 30% !important; /* Aumenta al 30% (Gana la autopista que le faltaba) */
    width: 30% !important;
    text-align: right !important;
    font-style: italic;
    color: #dd4b39 !important;
    margin: 0 !important;
    white-space: nowrap !important; /* Seguro estricto de no ruptura */
}

.enlace-legal-fichbox {
    flex: 0 0 40% !important; /* Se ajusta al 40% (Espacio más que de sobra para el aviso) */
    width: 40% !important;
    font-size: 0.68rem !important;
    color: rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    transition: color 0.25s ease-in-out !important;
    text-align: center !important;
    padding: 0 !important;
}

.enlace-legal-fichbox:hover {
    color: #dd4b39 !important;
    text-decoration: underline !important;
}

.reset-feedback {
    margin: 1.25rem 0 0.85rem;
    padding: 0.85rem 1rem;
    color: #3f4652;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(235, 70, 76, 0.26);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-shadow: none;
    overflow-wrap: anywhere;
}

.reset-rate-note {
    margin: 0.9rem 0 0;
    padding: 0 0.6rem;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-shadow: none;
}

/* ADAPTACIÓN SMARTPHONES: Sigue igual de perfecto, se apila en vertical */
@media screen and (max-width: 767px) {
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-y: auto !important; /* Habilita el scroll vertical nativo */
        -webkit-overflow-scrolling: touch !important; /* Autopista táctil fluida en iOS */
    }

    /* Ajustamos el contenedor principal de tu tarjeta de login para que no se quede congelado */
    .login-container, /* Pon aquí la clase real de tu envoltorio si usas otra */
    [class*="container"] { 
        height: auto !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important; /* Colchón de cortesía para que el pie respire sobre el borde inferior */
        display: block !important; /* Rompe el centrado rígido vertical para dejarlo fluir */
    }

    /* EL TRUCO: Asegura que la tarjeta de cristal no colapse ni se aplaste */
    .card, 
    .efecto-caja { 
        margin-bottom: 20px !important;
    }

    .contenedor-pie-fichbox {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .contenedor-pie-fichbox .item-copyright {
        display: none !important;
    }

    .contenedor-pie-fichbox .item-eslogan,
    .enlace-legal-fichbox {
        text-align: center !important;
        flex: none !important;
        width: 100% !important;
    }
    
    .contenedor-pie-fichbox .item-eslogan {
        white-space: normal !important;
    }
    
    .enlace-legal-fichbox {
        font-size: 0.72rem !important;
    }
}