/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 13/04/2026
    Author     : kpesantez
*/

/* ===== INPUT GROUP UNIFICADO ===== */
#page-mision .input-group {
    display: flex;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* INPUT */
#page-mision #txtBuscarExamen {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    height: 45px;
    padding: 0 6px; 
    box-sizing: border-box; 
}

/* BOTON */
#page-mision .input-group-append {
    display: flex;
    margin-left: 0 !important; 
}

#page-mision #btnBuscarExamen {
    border: none !important;
    width: 48px;
    min-width: 48px;
    height: 45px;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-mision #btnBuscarExamen:hover {
    background: #218838;
}

#page-mision .input-group:focus-within {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.2);
}

/* ===== TECLADO ===== */
#page-mision .key {
    background: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

#page-mision .key:hover {
    background: #28a745;
    transform: translateY(-3px) scale(1.1);
}

#page-mision .key::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.7),
        transparent
        );
    transform: translateX(-150%) skewX(-25deg);
}

#page-mision .key:hover::before {
    animation: espejoGPU 0.35s ease forwards;
}

/* ===== CARDS LISTADO ===== */
#page-mision .data-list-li .card {
    border-radius: 12px;
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
}

#page-mision .data-list-li .card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 25px rgba(0,0,0,0.15),
        0 0 10px rgba(40,167,69,0.2);
    border: 1px solid #28a745;
}

#page-mision .data-list-li .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
        );
    transform: translateX(-150%) skewX(-25deg);
}

#page-mision .data-list-li .card:hover::before {
    animation: espejoGPU 0.4s ease forwards;
}

/* ===== SCROLL LISTADO ===== */
.catalogo-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.catalogo-show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CASCADA ===== */
.cascade-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.cascade-show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PAGINACION ===== */
#data-list {
    perspective: 1200px;
}

.page-exit-next {
    animation: pageFadeOutLeft 0.3s forwards;
}

.page-exit-prev {
    animation: pageFadeOutRight 0.3s forwards;
}

.page-enter {
    animation: pageFadeIn 0.4s;
}

@keyframes pageFadeOutLeft {
    to { opacity: 0; transform: translateX(-40px); }
}

@keyframes pageFadeOutRight {
    to { opacity: 0; transform: translateX(40px); }
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ESPEJO ===== */
@keyframes espejoGPU {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(250%) skewX(-25deg); }
}

/* ===== ANIMACION AUTOMATICA JSP ===== */

/* estado inicial SOLO para el JSP */
.row > .col-sm-12 > .card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeDetalle 0.5s ease forwards;
}

/* pequeño delay en cascada */
.row > .col-sm-12:nth-child(1) .card { animation-delay: 0.1s; }
.row > .col-sm-12:nth-child(2) .card { animation-delay: 0.2s; }
.row > .col-sm-12:nth-child(3) .card { animation-delay: 0.3s; }
.row > .col-sm-12:nth-child(4) .card { animation-delay: 0.4s; }

/* animacion */
@keyframes fadeDetalle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
