/* Variables Globales */
:root {
    --primary: #291874;
    --primary-light: #342091;
    --primary-dark: #1f1357;
    --secondary: #0AAADA;
    --secondary-light: #2bbdeb;
    --secondary-dark: #0897c1;
    --accent: #F1E902;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --text-dark: #212529;
    
    --header-height: 80px;
    --menu-height: 60px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset y Estilos Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Superior */
.top-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.institution-name {
    color: var(--primary);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Menú Principal */
.main-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1010;
}

.navbar {
    padding: 0;
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-link {
    color: var(--white) !important;
    padding: 1rem 1.5rem !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: right;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Menus */
.dropdown-menu {
    margin: 0;
    padding: 0.5rem 0;
    border: none;
    border-radius: 0 0 8px 8px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--secondary);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Slider Principal */
.main-slider {
    position: relative;
    min-height: 500px;  /* Reducido de 700px a 500px */
    height: calc(100vh - var(--header-height) - var(--menu-height));
    overflow: hidden;
}

.main-slider .carousel-indicators {
    position: absolute;
    bottom: 30px;  /* Ajusta según necesites */
    left: 50%;
    z-index: 15;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-slider {
    margin-bottom: 0;
}

.carousel-inner {
    width: 100%;
    height: 100%; /* Asegura que ocupe todo el alto del contenedor padre */
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease-in-out;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(41, 24, 116, 0.9) 0%, 
        rgba(10, 170, 218, 0.7) 100%
    );
    mix-blend-mode: multiply;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: var(--white);
    text-align: left;
    z-index: 2;
    padding: 3rem 2rem;
}

.slide-title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.carousel-item.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s ease 0.4s;
}

.carousel-item.active .slide-divider {
    opacity: 1;
    transform: scaleX(1);
}

.slide-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: min(600px, 90%);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.carousel-item.active .slide-description {
    opacity: 1;
    transform: translateY(0);
}

.btn-slider {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.8s;
}

.carousel-item.active .btn-slider {
    opacity: 1;
    transform: translateY(0);
}

.btn-slider:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Controles del Carousel */
.carousel-control-prev,
.carousel-control-next {
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.main-slider:hover .carousel-control-prev,
.main-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--secondary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Indicadores */
.carousel-indicators {
    margin-bottom: 2rem;
    gap: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
    transition: var(--transition-smooth);
}

.carousel-indicators button.active {
    background-color: var(--secondary);
    transform: scale(1.3);
}

/* Media Queries */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: var(--shadow-lg);
    }

    .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        background: var(--primary-light);
        border: none;
        margin-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-item {
        color: var(--white);
    }

    .dropdown-item:hover {
        background: var(--primary);
        color: var(--secondary);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo-container {
        flex: 0 1 auto;
    }

    .social-links {
        flex: 0 0 auto;
        margin-left: 1rem;
    }

    .main-slider {
        min-height: 500px;
        height: 500px;
    }

    .carousel-content {
        text-align: center;
        padding: 2rem;
    }

    .slide-divider {
        margin: 1rem auto;
    }

    .slide-description {
        margin: 0 auto 1.5rem;
        max-width: 90%;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .btn-slider {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 40px;
    }

    .institution-name {
        display: none;
    }

    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .main-slider {
        min-height: 450px;
        height: 450px; 
    }

    .carousel-content {
        padding: 1.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-description {
        font-size: 0.95rem;
        max-width: 95%;
    }

    .btn-slider {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* Sección de Contadores */
.counter-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Efecto de fondo sutil */
.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Header de la sección */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(
        to right, 
        transparent, 
        var(--secondary), 
        transparent
    );
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/***************************** seccion contadores */

/* Grid de contadores */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.counter-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent);
}

.counter-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(41, 24, 116, 0.05);
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
}

.counter-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--secondary-dark);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.counter-item:hover .counter-icon {
    background: var(--primary);
    color: var(--accent);
}

.counter-icon:hover {
    background: var(--primary);
    color: white;
}

.counter-item:hover .counter-icon::after {
    opacity: 1;
    transform: scale(1);
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 1rem;
    color: #495057;
    margin: 0;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.counter-item:hover .counter-label {
    color: var(--primary);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.counter-item:nth-child(2) {
    animation-delay: 0.2s;
}

.counter-item:nth-child(3) {
    animation-delay: 0.4s;
}

.counter-item:nth-child(4) {
    animation-delay: 0.6s;
}

/* Media Queries */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .counter-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .counter-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .counter-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .counter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .counter-item {
        padding: 1.5rem;
    }

    .counter-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .counter-value {
        font-size: 2.2rem;
    }

    .counter-label {
        font-size: 0.95rem;
    }
}

/**************************** noticioas */
/* Sección de Noticias */
.news-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

/* Header de la sección */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 1rem;
}

/* Carousel de Noticias */
.news-carousel {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-slide {
    display: flex;
    min-height: 500px;
}

.news-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-item:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content {
    flex: 0 0 40%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-link:hover {
    color: var(--secondary);
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Controles del Carousel */
.carousel-control {
    width: 45px;
    height: 45px;
    background: rgba(41, 24, 116, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--secondary);
}

.carousel-control i {
    color: var(--white);
    font-size: 1.2rem;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Indicadores */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    gap: 8px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 991px) {
    .news-slide {
        flex-direction: column;
        min-height: auto;
    }

    .news-image,
    .news-content {
        flex: 0 0 100%;
    }

    .news-image {
        height: 300px;
    }

    .news-content {
        padding: 2rem;
    }

    .news-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .news-image {
        height: 250px;
    }

    .news-content {
        padding: 1.5rem;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-image {
        height: 200px;
    }

    .news-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/****************** eventos */
/* Sección de Eventos */
.events-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Tarjeta de Evento */
.event-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Fecha del Evento */
.event-date {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.3rem 0;
}

.event-date .year {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Detalles del Evento */
.event-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(10, 170, 218, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.event-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.event-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-info i {
    color: var(--secondary);
}

.event-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.event-link:hover {
    color: var(--secondary);
}

.event-link i {
    transition: transform 0.3s ease;
}

.event-link:hover i {
    transform: translateX(5px);
}

/* Media Queries */
@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 3rem 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .event-title {
        font-size: 1rem;
    }

    .event-info {
        font-size: 0.85rem;
    }
}

/**************** videos de youtube */
/* Sección de Videos */
.videos-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Tarjeta de Video */
.video-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* Thumbnail del Video */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Botón de Play */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.play-btn:hover {
    background: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Información del Video */
.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Botón de YouTube */
.btn-youtube {
    background: #ff0000;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-youtube:hover {
    background: #cc0000;
    color: var(--white);
    transform: translateY(-2px);
}

/* Modal de Video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Media Queries */
@media (max-width: 991px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 3rem 0;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .close-modal {
        top: -30px;
        right: 0;
    }
}


/*************** publicaciones */

/* Sección de Publicaciones */
.publications-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    position: relative;
}

/* Contenedor del Carousel */
.publications-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 3rem;
}

/* Grid de Publicaciones */
.publication-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Tarjeta de Publicación */
.publication-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.publication-cover {
    height: 250px;
    overflow: hidden;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publication-card:hover .publication-cover img {
    transform: scale(1.05);
}

.publication-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.publication-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(10, 170, 218, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.publication-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-authors,
.publication-journal,
.publication-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.publication-authors i,
.publication-journal i,
.publication-date i {
    color: var(--secondary);
    font-size: 1rem;
}

.publication-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-view {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    color: var(--secondary);
}

.btn-view i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-view:hover i {
    transform: translateX(5px);
}

/* Controles del Carousel */
.carousel-control {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control:hover {
    opacity: 1;
    background: var(--secondary);
}

.carousel-control i {
    color: var(--white);
    font-size: 1rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .publication-grid {
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .publication-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .publications-section {
        padding: 3rem 0;
    }

    .publications-carousel-wrapper {
        padding: 0 30px;
    }

    .publication-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .publications-carousel-wrapper {
        padding: 0 15px;
    }

    .publication-title {
        font-size: 1rem;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
    }
}


/*************** pie de pagina */
/* Footer */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column {
    text-align: center;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-contact,
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact i,
.footer-links i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    max-width: 300px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .main-footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column {
        text-align: left;
    }

    .footer-contact li,
    .footer-links li {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .newsletter-form {
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}