﻿:root {
    --menu-height: 75px;
    --menu-bg-color: #1E4782;
    --sidebar-width: 380px;
    --text-color: white;
}

/* ===== TIPOGRAFÍAS ===== */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Cond Heavy -> Oswald Bold */
.cond-heavy {
    font-family: 'Oswald', 'Arial Narrow Bold', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* Pluto Sans -> Inter */
.pluto-sans {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    position: fixed;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-custom {
    height: var(--menu-height);
    background-color: rgba(30, 71, 130, 0.7);
    font-family: 'Oswald', 'Arial Narrow Bold', sans-serif; /* Cond Heavy */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.navbar-custom.scrolled {
    background-color: var(--menu-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand, .nav-link {
    color: var(--text-color) !important;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-family: 'Oswald', 'Arial Narrow Bold', sans-serif; /* Cond Heavy */
}

/* Menú Desktop */
.desktop-menu .navbar-nav {
    flex-direction: row;
    align-items: center;
}

.desktop-menu .nav-item {
    margin-left: 15px;
}

.desktop-menu .dropdown-menu {
    background-color: var(--menu-bg-color);
    border: none;
}

.desktop-menu .dropdown-item {
    color: var(--text-color) !important;
    padding: 8px 20px;
    font-family: 'Inter', sans-serif; /* Pluto Sans */
    font-size: 0.9rem !important;
}

    .desktop-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.desktop-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .login-icon .fas {
    font-size: 2.0rem;
}

/* ===== SIDEBAR MÓVIL ===== */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    background-color: var(--menu-bg-color);
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.open {
    width: var(--sidebar-width);
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    height: 40px;
}

.sidebar-content {
    padding: 20px;
    padding-top: 40px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 8px 0;
    text-transform: uppercase;
    transition: 0.3s;
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

.sidebar-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.sidebar-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dropdown Sidebar */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-dropdown.open .sidebar-submenu {
    max-height: 300px;
    display: block;
}

.sidebar-submenu li {
    margin-bottom: 8px;
}

.sidebar-submenu a {
    font-size: 1rem;
    padding: 6px 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif; /* Pluto Sans */
}

.sidebar-submenu a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.sidebar-nav a.active,
.sidebar-submenu a.active {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    cursor: pointer;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-container {
    width: 100%;
}

.main-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.tex-h1 {
    color: black;
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    background-color: white;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
}

.footer-moderno {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 60px 0 0;
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Pluto Sans */
    position: relative;
    overflow: hidden;
}

.footer-moderno::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1E4782 0%, #143e79 100%);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 10px;
}

.footer-logo {
    height: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.ica-logo {
    max-width: 180px;
}

.ulp-logo {
    max-width: 160px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff;
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #1E4782;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact i {
    color: #1E4782;
    font-size: 1.2rem;
    margin-right: 10px;
    margin-top: 3px;
}

.footer-contact p,
.footer-contact a {
    color: #b8c2cc;
    margin-bottom: 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #b8c2cc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-menu i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: #1E4782;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #1E4782;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.newsletter-form input::placeholder {
    color: #b8c2cc;
}

.newsletter-form button {
    background: #e50914;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #c40812;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #b8c2cc;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #e50914;
}

/* ===== COMPONENTES REUTILIZABLES ===== */
/* Botón Volver Arriba */
.custom-back-to-top {
    position: fixed;
    bottom: 60px;
    right: 10px;
    display: none;
    font-size: 3rem;
    color: #1E4782;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s;
}

.custom-back-to-top:hover {
    color: #0056b3;
}

/* Container Cards */
.containerIca {
    width: 100%;
    padding: 80px 15px 0;
    margin: 0 auto;
}

/* Cards */
.ica-card-link {
    display: block;
    text-decoration: none;
}

.ica-card {
    position: relative;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.ica-card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.ica-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.ica-card:hover::before {
    opacity: 1;
}

.ica-thumbnail {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 16px #1E4782;
    aspect-ratio: 2 / 2.5;
}

.ica-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ica-card:hover .ica-img {
    transform: scale(1.05);
}

.ica-tags-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.ica-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

.ica-tag-genre {
    background: #E50914;
    color: white;
    align-self: flex-end;
}

.ica-tag-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-self: flex-end;
}

.ica-sinopsis-box {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    border-top: 2px solid #E50914;
}

.ica-card:hover .ica-sinopsis-box {
    bottom: 0;
    opacity: 1;
}

.ica-sinopsis-title {
    color: #FFF;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

.ica-sinopsis-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif; /* Pluto Sans */
}

/* Botones */
.ica-btn-unified {
    background-color: #1E4782;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 71, 130, 0.3);
    font-family: 'Oswald', sans-serif; /* Cond Heavy */
}

    .ica-btn-unified:hover {
        background-color: #15325c;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(30, 71, 130, 0.4);
    }

    .ica-btn-unified:active {
        transform: translateY(1px);
    }

.btn-lg.ica-btn-unified {
    padding: 14px 32px;
    font-size: 1.2rem;
}

.ica-btn-unified i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.ica-btn-unified:hover i {
    transform: translateX(3px);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 576px) {
    .containerIca {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .containerIca {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .containerIca {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .containerIca {
        max-width: 1140px;
    }
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: block;
    }

    .desktop-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer-moderno {
        padding: 40px 0 0;
    }

    .footer-branding {
        align-items: center;
        margin-bottom: 30px;
    }

    .footer-title {
        margin-top: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom .row > div {
        text-align: center !important;
    }

    .footer-bottom .col-md-6:first-child {
        margin-bottom: 10px;
    }

    .ica-card {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .ica-tag {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .ica-btn-unified {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .btn-lg.ica-btn-unified {
        padding: 12px 28px;
        font-size: 1.1rem;
    }

    .ica-sinopsis-box {
        position: static;
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Efectos hover para el menú desktop */
.nav-link:hover, .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.nav-link.active {
    border-bottom: 2px solid var(--text-color);
}


/*.university-slide-image.failed-load {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;*/ /* Más ancho en pantallas pequeñas */
    /*height: 40%;*/ /* Un poco más alto para mejor visibilidad */
    /*position: absolute;
    top: 40%;*/ /* Ajustado para mejor centrado vertical */
    /*left: 10%;*/ /* Más margen lateral */
/*}*/

   
