﻿/* --- 1. CONFIGURACIÓN DE FUENTES LOCALES --- */
@font-face {
    font-family: 'AlluraLocal';
    src: url('/fonts/allura-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- 2. ESTILOS BASE --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

/* --- 3. TIPOGRAFÍAS DE IDENTIDAD (PARA LAS VISTAS) --- */
.titulo-firma {
    font-family: 'AlluraLocal', 'Great Vibes', cursive;
    text-transform: none !important;
    font-size: 5.5rem !important;
    font-weight: 400 !important;
    color: #004f2d;
    line-height: 0.8;
    display: block;
}

.titulo-unas {
    font-family: 'Impact', sans-serif;
    color: #042354;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.titulo-impact {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 4. NAVEGACIÓN Y MENÚ --- */
.nav-link-on {
    color: #fff !important;
    font-weight: bold;
}

.nav-link-off {
    color: rgba(255,255,255,.7) !important;
}

.nav-menu-rev {
    font-family: 'EB Garamond', serif;
    color: #ffffff; /* Ajustado para el fondo oscuro original */
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

    .nav-menu-rev.active {
        border-bottom: 3px solid #004f2d;
        color: #ffffff !important;
        font-weight: 700;
    }

    .nav-menu-rev:hover {
        color: #FFD700;
        text-decoration: none;
    }

/* --- 5. FOOTER (ESTILO REFINADO SIN IMPACT) --- */
footer {
    background-color: #042354;
    color: white;
    padding-top: 40px;
    margin-top: 50px;
}

.footer-separ {
    height: 10px;
    background-color: #004f2d;
    width: 100%;
    margin-bottom: 30px;
}

.footer-titulo {
    font-family: 'EB Garamond', serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFD700;
    font-size: 1.1rem;
}

.fo-a {
    font-family: 'EB Garamond', serif;
    color: #b3c6d6;
    text-decoration: none;
    transition: 0.3s;
}

    .fo-a:hover {
        color: white;
        text-decoration: underline;
    }

.footer-detalle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ACTUALIZADO EL 0106 - Iconos de redes sociales del footer */
.footer-redes {
    display: flex;
    gap: 12px;
}

.footer-red {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

    .footer-red:hover {
        background-color: #FFD700;
        color: #042354;
        transform: translateY(-3px);
        text-decoration: none;
    }


/* ACTUALIZADO EL 0106 - Barra superior LIMPIA (reemplaza el header con video en todo el portal).
   Barra fija arriba, sólida, institucional. El video se reservó para una fase futura. */
.barra-superior {
    background-color: #042354;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom: 3px solid #004f2d;
}

    .barra-superior .navbar-brand img {
        height: 46px;
        width: auto;
    }

    .barra-superior .nav-link {
        color: rgba(255, 255, 255, 0.88) !important;
        font-weight: 600;
        font-family: 'EB Garamond', serif;
        font-size: 1.05rem;
        letter-spacing: 0.3px;
        transition: color 0.25s ease;
        /* 01072026 - Evita que textos de 2 palabras (Mis compras / Página Web) se partan y se solapen. */
        white-space: nowrap;
    }

        .barra-superior .nav-link:hover {
            color: #FFD700 !important;
        }

/* ACTUALIZADO EL 0106 - Espacio superior para que el contenido no quede bajo la barra fija */
.main-portal {
    padding-top: 70px;
}

/* --- HEADER DINÁMICO FULL WIDTH (legado: ya no se usa, reservado para fase de video) --- */

header#inicio {
    position: relative; /* Base para que el menú flote adentro */
    overflow: hidden;
    background-color: #042354;
    border-bottom: 4px solid #004f2d;
}

/* cambio2905 - Video del header más bajo (antes 480px). Se deja un espacio arriba
   igual a la altura de la barra fija para que el menú no tape el inicio del video. */
.header-video-full {
    width: 100%;
    height: 360px;
    position: relative;
    background-color: #042354;
    padding-top: 64px; /* deja ver la barra fija encima sin recortar el video */
}

.video-header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto elimina los bordes y ajusta el video al ancho */
    object-position: center center; /* CLAVE: Esto centra el video. Si quieres ver más la parte de abajo, usa 'center bottom' */
}

/* Capa oscura para que el texto resalte */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(4, 35, 84, 0.4), rgba(4, 35, 84, 0.8));
    z-index: 1;
}

/* cambio2905 - El menú ahora queda FIJO arriba desde el inicio (antes flotaba abajo del
   video y solo se fijaba al hacer scroll). Barra sólida siempre visible. */
.menu-sobre-video {
    position: fixed;
    top: 0;
    bottom: auto;
    width: 100%;
    z-index: 1050;
    background-color: #042354; /* Navy sólido institucional */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* cambio2905 - Barra de categorías PEGAJOSA (sticky) para las páginas de catálogo.
   Queda fija justo debajo de la barra de menú al hacer scroll, para saltar entre
   Revistas / Libros / Folletos / Boletines sin perderla de vista. */
.barra-categorias {
    position: sticky;
    top: 70px; /* altura aprox. de la barra de menú fija */
    z-index: 1020;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin-bottom: 30px;
}

    .barra-categorias .nav-pills {
        margin-bottom: 0 !important;
    }

/* cambio2905 - Buscador ESTÁNDAR compacto para las vistas de catálogo */
.buscador-std {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .buscador-std .input-group-text {
        border-radius: 8px 0 0 8px;
    }

    .buscador-std .form-control {
        box-shadow: none;
    }

/* 11062026 mejoras catalogo UX - segunda fila de filtros (acceso/nuevo/orden) y paginacion */
.buscador-std .cat-filtros {
    border-top: 1px dashed #e9ecef;
    padding-top: 10px;
}

.cat-acceso .btn {
    border-radius: 8px;
}

    .cat-acceso .btn + .btn {
        margin-left: -1px;
    }

#catContador {
    font-weight: 600;
}

/* Paginacion en verde institucional */
#catPaginacion .page-item.active .page-link {
    background-color: #004f2d;
    border-color: #004f2d;
}

#catPaginacion .page-link {
    color: #004f2d;
    border-radius: 8px;
    margin: 0 2px;
}

    #catPaginacion .page-link:focus {
        box-shadow: none;
    }

@media (max-width: 767.98px) {
    .buscador-std .cat-filtros > div {
        text-align: center !important;
    }

    .cat-acceso {
        margin-bottom: 8px;
    }
}

/* ========================================================================
   ACTUALIZADO EL 0106 - LENGUAJE VISUAL EDITORIAL COMPARTIDO
   (usado por la portada Index y por las 4 vistas de categoría, para que
    todo el portal se sienta parte del mismo sistema)
   ======================================================================== */

/* Botones institucionales */
.btn-fe {
    border-radius: 8px;
    font-weight: 700;
    padding: 11px 26px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}
.btn-fe-primary { background-color: #004F2D; color: #fff; }
.btn-fe-primary:hover { background-color: #013a21; color: #fff; transform: translateY(-2px); }
.btn-fe-outline { background-color: transparent; border-color: #042354; color: #042354; }
.btn-fe-outline:hover { background-color: #042354; color: #fff; transform: translateY(-2px); }

/* Encabezado de página de categoría */
.cat-hd {
    background-color: #F4F6F8;
    padding: 46px 0 34px;
    border-bottom: 1px solid #e9ecef;
}
.cat-hd h1 { font-weight: 800; color: #042354; margin-bottom: 6px; }
.cat-hd .cat-hd-desc { color: #6c757d; margin-bottom: 0; max-width: 640px; }
.cat-hd .cat-hd-total {
    display: inline-block;
    margin-top: 14px;
    background-color: #004F2D;
    color: #fff;
    border-radius: 20px;
    padding: 5px 16px;
    font-weight: 700;
    font-size: 0.85rem;
}
.cat-hd-nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-hd-nav a {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    color: #042354;
    background-color: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 30px;
    padding: 7px 18px;
    transition: all 0.25s ease;
    text-decoration: none;
}
    .cat-hd-nav a:hover { color: #fff; background-color: #004F2D; border-color: #004F2D; }
    .cat-hd-nav a.active { color: #fff; background-color: #004F2D; border-color: #004F2D; }

/* Tarjeta editorial homogénea (portada protagonista) */
.pub-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pub-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10); }
.pub-card.es-nuevo { border-color: #28a745; }

.pub-card__imgwrap {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8F9FA;
    padding: 16px;
}
.pub-card__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.pub-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; }
.pub-tipo {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 10px;
}
.pub-titulo {
    font-weight: 700;
    color: #042354;
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 6px;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
    .pub-titulo a { color: inherit; text-decoration: none; }
    .pub-titulo a:hover { color: #004F2D; }
.pub-autor { font-size: 0.85rem; color: #6c757d; margin-bottom: 12px; }
.pub-accion { margin-top: auto; }
.pub-ver { color: #004F2D; font-weight: 700; font-size: 0.9rem; }

/* Cinta "NUEVO" compartida */
.cinta-nuevo {
    position: absolute;
    top: 14px;
    right: -34px;
    background-color: #28a745;
    color: #fff;
    padding: 4px 38px;
    font-weight: 800;
    font-size: 0.72rem;
    transform: rotate(45deg);
    z-index: 3;
    letter-spacing: 1px;
}

/* --- ESTILO PARA EL FONDO DEL LOGIN (Ruta Corregida) --- */
.login-body-custom {
    background: linear-gradient(rgba(4, 35, 84, 0.7), rgba(4, 35, 84, 0.7)), url('/images/fotobodylogin.jpg'); /* Ruta exacta según tu captura */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    backdrop-filter: blur(8px); /* Aumentamos un poco el desenfoque para que se vea más pro */
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   18092026 cambio series neon - SERIES DE BOLETINES
   Los boletines de una MISMA serie (2 o mas entregas: Vol. 1 N.º 1, Vol. 1 N.º 2...)
   comparten un borde NEON del mismo color, y cada serie tiene el suyo. El color llega
   desde la vista en la variable CSS --serie (ver ColoresSerie en PortalController).
   ══════════════════════════════════════════════════════════════════════ */
/* QUITADO a pedido del usuario (2026-09-18): el borde neon de la tarjeta no gusto. Se conserva
   comentado por si se vuelve a usar (basta con volver a poner la clase .en-serie en Boletines.cshtml).
.pub-card.en-serie {
    border: 2px solid var(--serie);
    box-shadow: 0 0 0 1px var(--serie), 0 0 14px var(--serie);
}
.pub-card.en-serie:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px var(--serie), 0 0 22px var(--serie), 0 14px 28px rgba(0, 0, 0, 0.10);
}
*/
/* Pastilla con el N.º de entrega: fondo oscuro, texto y borde del color de la serie
   (morado si el boletin no pertenece a ninguna serie). */
.pub-num {
    display: inline-block;
    margin: 2px 0 8px;
    padding: 2px 10px;
    border-radius: 50rem;
    font-size: .75rem;
    font-weight: 800;
    background: #1b1b1b;
    color: var(--serie, #d6b8ff);
    border: 1.5px solid var(--serie, #6f42c1);
    box-shadow: 0 0 8px var(--serie, rgba(111, 66, 193, .4));
}
