/* ============================================================
   ESTILOS UNIFICADOS – INGRESANTES
   Facultad de Ingeniería – UNLPam
   Sección: Comunidad → Ingresantes
   ============================================================ */

/* ------------------------------------------------------------
   PALETA INSTITUCIONAL
------------------------------------------------------------ */
:root {
    --azul-fi: #2f548a;
    --azul-fi-suave: #466c9b;
    --fondo-card: #ffffff;
    --shadow-suave: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 25px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   TITULOS / ICONOS
------------------------------------------------------------ */
h3, h4, h5 {
    color: var(--azul-fi);
}

.text-primary {
    color: #2f5388 !important;
}
.icono-seccion,
.material-icons {
    color: var(--azul-fi-suave) !important;
    vertical-align: middle;
    opacity: 0.9;
    transition: 0.25s;
}

h3:hover .material-icons,
h4:hover .material-icons,
h5:hover .material-icons {
    color: var(--azul-fi) !important;
    opacity: 1;
}

/* ------------------------------------------------------------
   CONTENEDORES / CARDS GENERALES
------------------------------------------------------------ */
.contenido-opcion {
    background: var(--fondo-card);
    border-radius: 14px;
    box-shadow: var(--shadow-suave);
    transition: 0.25s ease;
    padding: 20px 22px;
}

.contenido-opcion:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}


/* ------------------------------------------------------------
   BOTONES GENERALES (ingresantes)
------------------------------------------------------------ */
.btn-acceso {
    background: var(--azul-fi);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.btn-acceso:hover {
    background: #1d3c63;
    transform: translateY(-2px);
}

.btn-acceso.active {
    background: #1d3c63;
    transform: translateY(1px);
}

/* ------------------------------------------------------------
   OPCIONES DE SELECCIÓN (COMO_INGRESAR)
------------------------------------------------------------ */
/* BOTONES PRINCIPALES DE OPCIÓN */
.opcion-seleccion {
    cursor: pointer;
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid #e8ecf5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: 0.25s ease;
    padding: 25px 20px !important;
    min-height: 120px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.opcion-seleccion:hover {
    transform: translateY(-3px);
    border-color: var(--azul-fi-suave);
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    background-color: rgba(47, 84, 138, 0.05);
}

.opcion-seleccion .card-title {
    color: var(--azul-fi);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    text-wrap: balance;
}

.boton-ingreso-col {
    padding: 0 12px !important;
}
.text-center {
    align-content: center;
}


/* ------------------------------------------------------------
   SIDE BARS UNIFICADAS (accesibilidad, demanda, tutorías, violencia)
------------------------------------------------------------ */
.sidebar-fija,
.sidebar-accesibilidad,
.sidebar-demanda,
.sidebar-tutorias,
.sidebar-protocolo {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 18px 18px 22px;
    margin-bottom: 20px;
    transition: 0.25s ease;
}

.sidebar-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sidebar-box h5 {
    color: var(--azul-fi);
    font-weight: 600;
}

.sidebar-box .material-icons {
    color: var(--azul-fi-suave) !important;
}

.sidebar-box:hover .material-icons {
    color: var(--azul-fi) !important;
}

/* ------------------------------------------------------------
   FAQ SIDEBAR (COMO_INGRESAR)
------------------------------------------------------------ */
.faq-sidebar {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-suave);
    padding: 18px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 500;
    margin-left: 8px;
}

.faq-btn {
    background: #f4f6fb;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2f4165;
    cursor: pointer;
    transition: 0.2s ease;
}

.faq-btn:hover {
    background: #e2e7f3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
/*ACA TOY*/
/* --- LISTA TIPO APPLE (CORREGIDA) --- */
/* --- LISTA ESTILO APPLE (2 líneas) --- */

.lista-apple {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    border-radius: 20px;
    background: #ffffff;
    padding: 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);

    max-width: 75%;
    margin-left: 0;
}

/* item */
.apple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 22px;
    text-decoration: none;

    border-bottom: 1px solid #f0f0f0;

    background: #fff;
    transition: 0.25s ease;

    opacity: 0;              /* para animación */
    transform: translateY(8px);
    animation: aparecer 0.5s ease forwards;
}

.apple-item:nth-child(1) { animation-delay: 0.05s; }
.apple-item:nth-child(2) { animation-delay: 0.10s; }
.apple-item:nth-child(3) { animation-delay: 0.15s; }
.apple-item:nth-child(4) { animation-delay: 0.20s; }
.apple-item:nth-child(5) { animation-delay: 0.25s; }
.apple-item:nth-child(6) { animation-delay: 0.30s; }
.apple-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* contenido de texto */
.apple-texto {
    display: flex;
    flex-direction: column;
}

.titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #1f1f1f;
}

.duracion {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* Flecha */
.arrow {
    font-size: 1.3rem;
    color: #bcbcbc;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover estilo Apple */
.apple-item:hover {
    background: #f5f5f7;
}

.apple-item:hover .arrow {
    transform: translateX(4px);
    color: #888;
}

/* última fila sin borde */
.apple-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 576px) {
    .lista-apple { max-width: 100%; }
    .apple-item { padding: 12px 16px; }
}


/* ------------------------------------------------------------
   BARRA DE PROGRESO (COMO_INGRESAR)
------------------------------------------------------------ */
.ph-wrapper {
    position: sticky;
    top: 140px;
    z-index: 900;
    background: #fff;
    padding-top: 10px;
    margin-bottom: 25px;
}

.progreso-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ph-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    transition: 0.3s;
}

.ph-item.activa {
    opacity: 1;
}

.ph-circulo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--azul-fi);
    color: var(--azul-fi);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-item.activa .ph-circulo {
    background: var(--azul-fi);
    color: #fff;
}

.ph-line {
    flex: 1;
    height: 3px;
    background: rgba(47, 84, 138, 0.18);
    border-radius: 2px;
    margin: 0 12px;
}

.ph-item.activa + .ph-line {
    background: rgba(47, 84, 138, 0.45);
}

/* ------------------------------------------------------------
   IMÁGENES DE DOCUMENTACIÓN (COMO_INGRESAR)
------------------------------------------------------------ */
.doc-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 10px;
}

.doc-images img {
    max-width: 220px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d6dbe5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.doc-images img.correcta {
    border-color: #3aa66f;
    box-shadow: 0 0 0 3px rgba(58,166,111,0.25);
}

/* ------------------------------------------------------------
   LIGHTBOX (COMO_INGRESAR)
------------------------------------------------------------ */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* ------------------------------------------------------------
   VIDEO RESPONSIVE (COMO_INGRESAR)
------------------------------------------------------------ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-suave);
    margin-top: 10px;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}
/* Ajusta la posición sticky del sidebar de preguntas frecuentes */
.faq-sidebar.sticky-top {
    top: 128px !important;
}

/* Bloque de advertencia FI */
.alert-warning-fi {
    background: #fff7d6;
    border-left: 4px solid #e4b400;
    color: #664d00;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 15px auto; /* centra automáticamente */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.35rem;
    max-width: 85%; /* << achica el ancho */
    margin-left: 0px;
}


.alert-warning-fi svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #b58900; /* tono un poco más fuerte */
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 768px) {
    .doc-images img {
        max-width: 100%;
    }

    .ph-wrapper {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .sidebar-fija,
    .sidebar-accesibilidad,
    .sidebar-demanda,
    .sidebar-tutorias,
    .sidebar-protocolo {
        max-height: none !important;
        position: static !important;
    }
}
