:root {
    --azul-oscuro: #061f33;
    --azul-claro: #004d99;
    --blanco: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	padding-top: 150px;
	background-image: url('images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body p {
   font-size:1.1rem;
    color: #666666;
    line-height: 1.6;
	text-align:justify;
}

section[id] {
    scroll-margin-top: 80px; /* Ajusta este valor al alto de tu menú (aprox 80px - 100px) */
    scroll-behavior: smooth;  /* Para que el desplazamiento sea suave y no un salto brusco */
}

.header-unimar {
    position: absolute; /* Inicia normal */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
}

/* EFECTO STICKY: Se activa con JavaScript */
.header-unimar.sticky-active {
    position: fixed;
    background: rgba(11, 47, 89, 0.95); /* Color institucional con transparencia */
    backdrop-filter: blur(10px); /* Efecto de cristal esmerilado */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease;
}

/* Reducimos el tamaño de la barra principal al hacer scroll */
.header-unimar.sticky-active .main-header {
    padding: 5px 0;
}

/* Escondemos la barra superior de contacto para ganar espacio visual */
.header-unimar.sticky-active .bottom-bar {
    display: none; 
}

/* Reducimos un poco el logo en modo sticky */
.header-unimar.sticky-active .logo-content img {
   
    transition: 0.3s;
}

/* Animación de entrada suave */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Contenedor del Logo con corte diagonal */
.logo-container {
    background-color: var(--azul-oscuro);
    padding: 0px 0px 20px 40px;
    position: relative;
    z-index: 10;
    /* Creamos el efecto de corte diagonal en la esquina inferior derecha */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
	top: 20px;
    left: -20px;
    margin-left: 0px;
}

.logo-content {
    display: flex;
    align-items: center;
}

.logo-content img {
    height: 70px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
}

.logo-text {
    color: white;
    line-height: 1;
}

.logo-text .editorial {
    display: block;
    font-size: 2.2rem;
    font-weight: 300;
}

.logo-text .unimar {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

/* Barra Azul Oscuro Principal */
.main-header {
    background-color: var(--azul-oscuro);
    min-height: 100px;
	position: relative;
    z-index: 10000 !important; /* Un poco más alto que el header */
    overflow: visible !important; /* CRÍTICO: permite que el menú "salga" de la caja */
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 1.2rem;
    margin: 0 12px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.1);
    color: #cbd5e0 !important;
}

/* Iconos de Redes Sociales - Estilo Círculo Blanco */
.social-links a {
    background-color: #ffffff; /* Fondo blanco del círculo */
    color: var(--dark-blue);   /* El color del icono será el azul oscuro */
    width: 35px;               /* Ancho fijo */
    height: 35px;              /* Alto fijo */
    margin-left: 12px;
    border-radius: 50%;        /* Hace que sea un círculo perfecto */
    display: flex;             /* Flexbox para centrar el icono */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;         /* Tamaño del icono interno */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sutil sombra para dar profundidad */
}

.social-links a:hover {
    transform: scale(1.1);     /* Efecto de agrandado moderno */
    background-color: #f0f0f0; /* Cambio sutil al pasar el mouse */
    opacity: 1;                /* Quitamos la opacidad para que brille el blanco */
}

/* Ajuste específico para iconos que suelen verse descentrados */
.social-links a .fa-facebook-f {
    font-size: 1rem;
}

/* Barra Azul Claro e ítems de contacto (Corregido) */
.bottom-info-bar {
    background-color: var(--light-blue);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.bottom-info-bar span {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.bottom-info-bar i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Barra Azul Claro (Abajo) */
.bottom-bar {
    background-color: var(--azul-claro);
    height: 45px;
    margin-top: -5px; /* Ajuste para unir con la barra de arriba */
	min-height: 25px;
}

.contact-item {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 992px) {

    .logo-text .editorial { font-size: 1.5rem; }
    .logo-text .unimar { font-size: 1.2rem; }
    .bottom-bar { height: auto; padding: 10px 0; }
}




/* --- AJUSTES PARA MENÚ MÓVIL INDEPENDIENTE --- */
@media (max-width: 991.98px) {
    /* 1. Hacemos que el contenedor del menú flote sobre el resto */
   #navEditorial {
        position: absolute;
        top: 100%; 
        right: 0px;
        width: 300px;
        background-color: var(--azul-oscuro);
        
        /* NIVEL DE PROFUNDIDAD */
        z-index: 99999 !important; /* Valor muy alto para que nada lo tape */
        
        /* Sombra para que se note la separación de la sección de abajo */
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        
        padding: 20px;
        border-bottom: 3px solid var(--azul-claro); /* Toque visual extra */
    }

    /* Aseguramos que el header padre no limite el despliegue */
    .header-unimar {
        overflow: visible !important; 
    }

    /* 2. Alineación de los items en móvil */
    .navbar-nav {
        text-align: center;
        margin-bottom: 20px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* 3. Centramos las redes sociales en el menú móvil */
    .social-links {
        justify-content: center;
        margin-left: 0 !important;
        padding-top: 10px;
    }

    /* 4. Aseguramos que el main-header sea el punto de referencia */
    .main-header {
        position: relative;
    }

}

/* Estilo para el botón hamburguesa para que combine */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    outline: none !important;
    box-shadow: none !important;
}

/* --- INTERACTIVIDAD AVANZADA DEL MENÚ --- */

/* 1. Efecto de línea expansiva en los links */
.nav-link-grow {
    position: relative;
    padding-bottom: 5px;
}

.nav-link-grow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--blanco);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efecto elástico */
    transform: translateX(-50%);
}

.nav-link-grow:hover::after {
    width: 100%;
}

.nav-link-grow:hover {
    color: #cbd5e0 !important;
    transform: translateY(-2px); /* Pequeño levante */
}

/* 2. Glassmorphism al Scroll */
.main-header {
    transition: all 0.5s ease;
    backdrop-filter: blur(0px);
}

.main-header.scrolled {
    background-color: rgba(6, 31, 51, 0.9) !important; /* Azul oscuro con transparencia */
    backdrop-filter: blur(10px); /* Efecto esmerilado */
    padding: 5px 0; /* Se hace más delgado al bajar */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* 3. Animación para el botón Hamburguesa en Móvil */
.navbar-toggler {
    transition: all 0.3s ease;
}

.navbar-toggler:active {
    transform: scale(0.8);
}





/* --- HERO SECTION --- */
.hero-editorial {
    min-height: calc(100vh - 145px); /* Ajustado al tamaño de tu header */
    /*background: radial-gradient(circle at top left, #0a253d, #061f33);*/
	background-color:#dddddd;
    overflow: hidden;
    position: relative;
	z-index: 9999 !important;
}

/* Decoración de fondo */
.hero-editorial::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: var(--azul-claro);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

.badge-new {
    background-color: var(--azul-claro);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botones Personalizados */
.btn-unimar-primary {
    background-color: var(--azul-claro);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-unimar-primary:hover {
    background-color: white;
    color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-unimar-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-unimar-outline:hover {
    background-color: white;
    color: var(--azul-oscuro);
}

/* Animación del Libro */
.book-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-book {
    width: 350px;
    z-index: 5;
    filter: drop-shadow(20px 20px 50px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

.circle-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}




/* Quénes Somos */
/* --- VARIABLES (Asegúrate de tener estas o cámbialas por tus valores) --- */
:root {
    --azul-oscuro: #061f33;
    --azul-claro: #004d99;
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.section-title {
    color: var(--azul-oscuro);
    font-weight: 800;
    font-size: 2.5rem;
}


.content-text {
    padding-left:50px;
}

/* --- BOTONES MODERNOS --- */
.btn-editorial {
    background-color: var(--azul-oscuro);
    color: white;
    padding: 12px 45px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-editorial:hover {
    background-color: var(--azul-claro);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* --- SECCIÓN SOBRE LA EDITORIAL --- */
.objective-text {
    font-size: 1.1rem;
    color: #555;
    padding-left: 10px;
    text-align: justify;
    line-height: 1.6;
}

/* --- ANIMACIONES Y EFECTOS --- */

/* Animación de flotado suave para imágenes decorativas */
.floating {
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating2 {
    animation: floatAnim2 4s ease-in-out infinite;
}

@keyframes floatAnim2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* Efecto de sutil zoom al pasar por las imágenes principales */
.main-catalog-img {
    transition: transform 0.4s ease;
}

.main-catalog-img:hover {
    transform: scale(1.03);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .objective-text {
        padding-left: 0;
        margin-top: 20px;
        text-align: center;
    }
    
    /* Centrar imágenes en móvil */
    .target-icon, .col-md-3, .col-md-1 {
        text-align: center;
        margin-bottom: 15px;
    }
}





/* Como Publicar */
/* --- SECCIÓN CÓMO PUBLICAR --- */
.como-publicar {
    background-color: #ffffff;
}

.como-text {
    color: var(--azul-oscuro);
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: -10px;
}

.publicar-text {
    color: var(--azul-oscuro);
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: 2px;
}

/* Tarjeta de Publicación */
.pub-card {
    background: #f9fbfe;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
}

.pub-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Imagen con interactividad */
.pub-image-container {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--azul-oscuro); /* Por si la imagen es transparente */
}

.pub-img {
    transition: all 0.5s ease;
}

.pub-card:hover .pub-img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.2);
}

/* Información y Título */
.pub-info {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.pub-title {
    font-size: 1.1rem;
    color: var(--azul-claro);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Botón Moderno de Descarga */
.btn-download-modern {
    display: inline-block;
    text-align: center;
    padding: 8px 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
}

.btn-download-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s;
}

.btn-download-modern:hover {
    background-color: var(--azul-oscuro);
    color: white;
    border-color: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 31, 51, 0.3);
}

.btn-download-modern:hover::before {
    left: 100%;
}

/* Responsive Ajustes */
@media (max-width: 576px) {
    .pub-card {
        flex-direction: column;
        text-align: center;
    }
    .pub-info {
        padding-left: 0;
        margin-top: 15px;
    }
    .publicar-text {
        font-size: 2.5rem;
    }
}




/* Linamientos */
/* --- SECCIÓN NORMATIVA (BLOQUE ALT) --- */

/* Contenedor principal con borde izquierdo elegante */
.pub-card-alt {
    background: #f9fbfe;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 5px solid var(--azul-oscuro); /* Acento de color */
    height: 100%;
    cursor: pointer;
}

/* Imagen con filtro de escala de grises que se quita al hover */
.pub-image-container-alt {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
}

.pub-img-alt {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Centrado Vertical del Texto */
.pub-info-alt {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: flex-start;
    min-height: 100px;
}

.pub-title-alt {
    font-size: 1.1rem;
    color: #004f9e;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* --- INTERACTIVIDAD DIFERENTE --- */
.pub-card-alt:hover {
    transform: translateX(10px); /* Desplazamiento lateral en lugar de zoom */
    background-color: var(--azul-oscuro);
    border-left-color: var(--azul-claro);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
}

.pub-card-alt:hover .pub-img-alt {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.pub-card-alt:hover .pub-title-alt {
    color: #ffffff; /* El texto cambia a blanco para resaltar */
}




/* Equipo de Trabajo */
/* --- SECCIÓN NUESTRO EQUIPO --- */

.nuestro-equipo {
    background-color: #f9fbfe;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--azul-claro);
    margin: 0 auto;
    border-radius: 2px;
}

/* Tarjeta del equipo */
.team-card {
    text-align: center;
    background: #004f9e;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Contenedor de imagen y overlay */
.team-img-container {
    position: relative;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cortina Semitransparente */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 31, 51, 0.8); /* Azul oscuro con opacidad */
    backdrop-filter: blur(4px); /* Efecto de desenfoque moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px); /* Empieza un poco abajo */
}

.overlay-content {
    color: white;
    padding: 20px;
}

.team-email {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 15px;
	color:#ffffff;
}

.social-mini a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-mini a:hover {
    color: var(--azul-claro);
}

/* Información inferior */
.team-info {
    padding: 20px 10px;
    transition: transform 0.4s ease;
}

.team-name {
    color: #ffffff;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.team-role {
    color: #dedede;
	text-align:center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* --- ESTADO HOVER (DINAMISMO) --- */

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover .team-info {
    transform: translateY(-5px);
}

.team-card:hover .team-name {
    color: #129bdb;
}

/* Animación sutil de entrada para los elementos del equipo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.8s ease backwards;
}

/* Retraso para que aparezcan uno tras otro */
.col-lg-3:nth-child(1) .team-card { animation-delay: 0.1s; }
.col-lg-3:nth-child(2) .team-card { animation-delay: 0.2s; }
.col-lg-3:nth-child(3) .team-card { animation-delay: 0.3s; }
.col-lg-3:nth-child(4) .team-card { animation-delay: 0.4s; }

.carta {
	font-size:40px;
}




/* Estructura */
/* --- SECCIÓN PERFILES DE CARGOS --- */

.perfiles-cargos {
    background-color: #f0f4f8; /* Color gris azulado muy suave de fondo */
}

.cargo-card {
    background-color: #dbe4ef; /* El azul claro de las tarjetas de la imagen */
    padding: 30px;
    height: 100%;
    border-radius: 4px; /* Bordes ligeramente redondeados como en la imagen */
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

/* Efecto Dinámico al pasar el mouse */
.cargo-card:hover {
    background-color: #ffffff; /* Cambia a blanco para resaltar */
    transform: translateY(-10px); /* Flota hacia arriba */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--azul-claro); /* Aparece una línea base */
}

.cargo-header {
    border-bottom: 2px solid var(--azul-claro); /* Línea divisoria de la imagen */
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
}

.cargo-title {
    color: var(--azul-oscuro);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.cargo-body p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

/* Ajuste de color del texto al hacer hover para mayor legibilidad */
.cargo-card:hover .cargo-title {
    color: var(--azul-claro);
}

/* Responsive */
@media (max-width: 991px) {
    .cargo-card {
        padding: 20px;
    }
    .cargo-title {
        font-size: 1.2rem;
    }
}




/* Logos */
#sires-bibliotecas {
    padding: 80px 0;
   
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

#sires-bibliotecas .unimar-section-header .subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    color: #0b2f59;
    margin-bottom: 5px;
    font-weight: 400;
}

#sires-bibliotecas .unimar-section-header h2 {
    font-size: 52px;
    color: #0b2f59;
    margin-bottom: 50px;
}

#sires-bibliotecas .unimar-section-header h2 strong {
    font-weight: 800;
}

/* Contenedor de la Grid */
.logos-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
	margin-top:50px;
}

.logo-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Tarjeta Individual de Logo */
.logo-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    width: 260px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* Efecto de sombra suave */
    box-shadow: 0 10px 30px rgba(11, 47, 89, 0.05);
    border: 1px solid rgba(11, 47, 89, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-card img {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(20%); /* Ligeramente desaturado para elegancia */
    transition: all 0.4s ease;
}

/* EFECTOS HOVER */
.logo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 47, 89, 0.12);
    border-color: #0b4d97;
}

.logo-card:hover img {
    filter: grayscale(0%) brightness(1.05); /* Recupera color y brilla al tocarlo */
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-card {
        width: 45%;
        height: 120px;
    }
    #sires-bibliotecas .unimar-section-header h2 {
        font-size: 32px;
    }
}



/* Contactos y Footer */
/* CONTACTO */
#contacto-editorial {
    padding: 80px 0;
    background: #f9fbfe;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0 20px;
    align-items: center;
}

.video-column { flex: 1; }

/* Hacer el video responsivo 16:9 */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.info-column { flex: 1; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 28px;
    color: #0b4d97;
    margin-top: 5px;
}

.info-text h3 {
    font-size: 20px;
    color: #0b2f59;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.info-text p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* FOOTER */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 30px;
	margin:0 auto;
}

.footer-logos img { width: 350px; height:auto; object-fit: contain; }

.footer-info { text-align: left; line-height: 1.8; margin: 0 auto;}
.footer-info p { margin: 0; opacity: 0.9; }
.footer-info .update-date { margin-top: 10px; opacity: 0.6; font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .contacto-container, .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .info-item { flex-direction: column; align-items: center; }
    .footer-logos { margin-bottom: 30px; }
    .footer-info { text-align: center; }
}
.footer-info p {
	color:#ffffff;
}

.sobre-editorial {
	background-color:#f9fbfe;
}


/* Link Lineamientos */
/* Quita la línea y el color azul del enlace */
.card-link-wrapper {
    text-decoration: none !important; /* Elimina la línea */
    color: inherit; /* Hereda el color del contenedor en lugar de ser azul */
    display: block; /* Hace que todo el recuadro sea cliqueable */
}




/* Logos Contactos */
/* Contenedor del icono/imagen */
.info-icon {
    width: 40px;      /* Ancho fijo para que todos los textos queden alineados */
    flex-shrink: 0;   /* Evita que la imagen se aplaste */
    display: flex;
    justify-content: center;
    margin-top: 5px;  /* Ajuste para que quede a la altura de la primera línea del título */
}

/* Estilo de la imagen de contacto */
.info-icon img {
    width: 100%;      /* Ocupa el ancho del contenedor info-icon */
    height: auto;
    object-fit: contain;
}

/* Ajuste del ítem para que el texto y la imagen no se peguen */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}




/* Revistas y Libros */
/* =========================
COLORES INSTITUCIONALES
========================= */

:root{
    --azul-oscuro:#061f33;
    --azul-claro:#004d99;
}



/* =========================
BOTONES
========================= */

.contenedor-botones-editorial{
    display:flex;
    gap:25px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:40px;
}

.btn-editorial-moderno{
    border:none;
    padding:18px 34px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--azul-oscuro),var(--azul-claro));
    color:#fff;
    font-size:18px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:12px;
    transition:.35s ease;
    box-shadow:0 12px 35px rgba(6,31,51,.28);
    position:relative;
    overflow:hidden;
}

.btn-editorial-moderno::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
    transition:.7s;
}

.btn-editorial-moderno:hover::before{
    left:120%;
}

.btn-editorial-moderno:hover{
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 18px 45px rgba(0,77,153,.35);
}

.btn-editorial-moderno i{
    font-size:20px;
}



/* =========================
MODAL GENERAL
========================= */

.modal-editorial .modal-content{
    background:linear-gradient(
        145deg,
        rgba(6,31,51,.98),
        rgba(0,77,153,.95)
    );

    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:34px;
    overflow:hidden;
    color:#fff;

    box-shadow:
        0 25px 70px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.03);
}

.modal-editorial .modal-header{
    padding:38px 42px 15px;
    position:relative;
}

.modal-editorial .modal-header::after{
    content:"";
    position:absolute;
    left:42px;
    bottom:0;
    width:90px;
    height:4px;
    border-radius:50px;
    background:linear-gradient(
        90deg,
        #ffffff,
        rgba(255,255,255,.2)
    );
}

.modal-subtitle{
    color:rgba(255,255,255,.72);
    letter-spacing:4px;
    font-size:13px;
    margin-bottom:10px;
    text-transform:uppercase;
    font-weight:500;
}

.modal-title-custom{
    font-size:52px;
    font-weight:800;
    margin:0;
    line-height:1;
    color:#fff;
}

.modal-editorial .modal-body{
    padding:30px 42px 45px;
}



/* =========================
TOP CONTENT
========================= */

.editorial-top-content{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:38px;
    align-items:center;
    margin-bottom:45px;
}

.editorial-image{
    border-radius:26px;
    overflow:hidden;
    position:relative;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.editorial-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(6,31,51,.35),
        transparent
    );
}

.editorial-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.6s ease;
}

.editorial-image:hover img{
    transform:scale(1.08);
}

.editorial-description p{
    color:rgba(255,255,255,.88);
    font-size:17px;
    line-height:1.9;
    margin-bottom:18px;
}



/* =========================
CARDS
========================= */

.tipos-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:28px;
}

.tipo-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.09);
    padding:38px;
    border-radius:28px;
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

.tipo-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(255,255,255,.05),
        transparent
    );
    opacity:0;
    transition:.35s ease;
}

.tipo-card:hover::before{
    opacity:1;
}

.tipo-card:hover{
    transform:translateY(-10px);
    border-color:rgba(255,255,255,.18);
    box-shadow:0 18px 45px rgba(0,0,0,.25);
}

.tipo-icon{
    width:78px;
    height:78px;
    border-radius:24px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(
        135deg,
        var(--azul-claro),
        #0b6ad1
    );

    margin-bottom:22px;

    font-size:30px;

    box-shadow:
        0 10px 25px rgba(0,77,153,.35);
}

.tipo-card h3{
    font-size:25px;
    margin-bottom:16px;
    font-weight:700;
    color:#fff;
}

.tipo-card p{
    color:rgba(255,255,255,.82);
    line-height:1.9;
}



/* =========================
MINI CARDS
========================= */

.mini-grid{
    grid-template-columns:repeat(3,1fr);
}

.mini-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:32px 20px;
    text-align:center;
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

.mini-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(255,255,255,.06),
        transparent
    );
    opacity:0;
    transition:.35s ease;
}

.mini-card:hover::before{
    opacity:1;
}

.mini-card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,255,255,.16);
    box-shadow:0 15px 35px rgba(0,0,0,.22);
}

.mini-card i{
    font-size:34px;
    margin-bottom:18px;
    color:#fff;
}

.mini-card span{
    display:block;
    font-size:17px;
    font-weight:600;
    color:#fff;
}



/* =========================
SCROLLBAR MODERNA
========================= */

.modal-body::-webkit-scrollbar{
    width:10px;
}

.modal-body::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.2);
    border-radius:20px;
}



/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

    .editorial-top-content{
        grid-template-columns:1fr;
    }

    .tipos-grid{
        grid-template-columns:1fr;
    }

    .mini-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .modal-title-custom{
        font-size:40px;
    }

}

@media(max-width:576px){

    .modal-editorial .modal-header,
    .modal-editorial .modal-body{
        padding-left:22px;
        padding-right:22px;
    }

    .mini-grid{
        grid-template-columns:1fr;
    }

    .btn-editorial-moderno{
        width:100%;
        justify-content:center;
    }

    .modal-title-custom{
        font-size:34px;
    }

}




/* Video Siempre Visible */
/* =========================
CONTENEDOR GENERAL
========================= */

.contacto-container{
    display:flex;
    gap:40px;
    align-items:stretch;
}

/* =========================
VIDEO
========================= */

.video-column{
    flex:1;
    min-width:0;
}

.video-responsive{
    position:relative;
    width:100%;
    padding-bottom:56.25%; /* 16:9 */
    height:0;
    overflow:hidden;
    border-radius:24px;
}

.video-responsive iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
    border-radius:24px;
}

/* =========================
INFO
========================= */

.info-column{
    flex:1;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:991px){

    .contacto-container{
        flex-direction:column;
    }

    .video-column{
        width:100%;
        display:block;
    }

    .video-responsive{
        width:100%;
        padding-bottom:56.25%;
    }

}


.info-text {
	text-align:left;
}

/* =========================
FOOTER MODAL
========================= */

.modal-footer-editorial{
    margin-top:40px;
    display:flex;
    justify-content:center;
}



/* =========================
BOTÓN REVISTAS
========================= */

.btn-ver-revistas{
    background:#f9fbfe;
    color:#061f33;

    padding:16px 34px;
    border-radius:18px;

    text-decoration:none;
    font-size:17px;
    font-weight:700;

    display:inline-flex;
    align-items:center;
    gap:12px;

    transition:.35s ease;

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);

    position:relative;
    overflow:hidden;
}



/* EFECTO BRILLO */

.btn-ver-revistas::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;

    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.55),
        transparent
    );

    transition:.7s ease;
}

.btn-ver-revistas:hover::before{
    left:120%;
}



/* HOVER */

.btn-ver-revistas:hover{
    transform:translateY(-5px) scale(1.03);

    color:#004d99;

    box-shadow:
        0 18px 40px rgba(0,0,0,.25);
}



/* ICONO */

.btn-ver-revistas i{
    transition:.3s ease;
}

.btn-ver-revistas:hover i{
    transform:translateX(4px);
}

.btn-editorial-moderno{
    width:240px;
    height:70px;

    justify-content:center;

    border:none;
    border-radius:18px;

    display:flex;
    align-items:center;
    gap:12px;
}




/* Libros */
/* =========================================
   LAYOUT GENERAL
========================================= */

.libros-layout{
	display:flex;
	gap:60px;
	align-items:flex-start;
	justify-content:space-between;
	flex-wrap:wrap;
}

/* =========================================
   DESCRIPCIÓN
========================================= */

.editorial-description{
	flex:1;
	min-width:320px;
	max-width:500px;
}

.editorial-description p{
	color:#ffffff;
	font-size:18px;
	line-height:1.8;
	margin-bottom:28px;
	font-weight:300;
}

/* =========================================
   LISTADO DERECHO
========================================= */

.libros-listado{
	width:360px;
	display:flex;
	flex-direction:column;
	gap:18px;
}

/* =========================================
   ITEM
========================================= */

.libro-item{
	display:flex;
	align-items:center;
	gap:18px;

	padding:14px 22px;

	background:rgba(61, 121, 177, 0.55);

	border:1px solid rgba(255,255,255,0.12);

	border-radius:18px;

	backdrop-filter:blur(6px);

	transition:all .3s ease;
}

.libro-item:hover{
	transform:translateX(6px);
	background:rgba(75, 141, 202, 0.75);
}

.libro-item img{
	width:42px;
	height:auto;
	object-fit:contain;
	flex-shrink:0;
}

.libro-item span{
	color:#fff;
	font-size:18px;
	font-weight:400;
	line-height:1.3;
}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:991px){

	.libros-layout{
		flex-direction:column;
		gap:35px;
	}

	.libros-listado{
		width:100%;
	}

	.libro-item span{
		font-size:16px;
	}
}




/* Logo Inicio */
/* =========================================
   EFECTO INTERACTIVO LOGO
========================================= */

.logo-link{
    display:block;
    cursor:pointer;
    text-decoration:none;
}

/* No modifica tamaños existentes */
.logo-link .logo-content,
.logo-link img{
    transition:
        transform .3s ease,
        filter .3s ease,
        opacity .3s ease;
}

/* Hover moderno */
.logo-link:hover .logo-content{
    transform:translateY(-2px);
}

.logo-link:hover img{
    filter:
        brightness(1.06)
        drop-shadow(0 6px 14px rgba(0,0,0,.22));
}

/* Click */
.logo-link:active .logo-content{
    transform:scale(.98);
}

