﻿
/* Variables globales */
:root {
    --primary-color: #005a87;
    --secondary-color: #0073a8;
    --accent-color: #e63946;
    --light-color: #f8f9fa;
    --dark-color: #1d3557;
    --highlight-color: #40c4ff;
}

/* Estilos básicos */
body {
    padding-top: 0px;
    background-color: var(--light-color);
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.3s;
    margin: 0 5px;
}

.nav-link:hover {
    color: white !important;
}

.nav-link.active {
    color: white !important;
    border-bottom: 2px solid white;
}

.public-navbar {
    min-height: 72px;
    padding: 0.55rem 0;
    background: rgba(0, 90, 135, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 35, 70, 0.18);
}

.public-nav-container {
    max-width: 1340px;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    margin-right: 1.25rem;
}

.public-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.public-brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.public-brand-copy {
    display: grid;
    line-height: 1.12;
}

.public-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.public-brand-subtitle {
    margin-top: 0.14rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.76);
}

.public-nav-links {
    gap: 0.12rem;
}

.public-navbar .nav-link {
    margin: 0;
    padding: 0.52rem 0.68rem !important;
    border-radius: 999px;
    font-size: 0.91rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84) !important;
    border-bottom: 0;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.public-navbar .nav-link.active {
    color: var(--primary-color) !important;
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.public-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.public-social-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.public-contact-btn {
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 1199.98px) {
    .public-navbar {
        min-height: 66px;
    }

    .public-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 14px;
        background: rgba(0, 74, 112, 0.98);
    }

    .public-navbar .nav-link {
        padding: 0.62rem 0.78rem !important;
    }

    .public-nav-actions {
        padding-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .public-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .public-brand-mark img {
        width: 30px;
        height: 30px;
    }

    .public-brand-title {
        font-size: 0.95rem;
    }

    .public-brand-subtitle {
        font-size: 0.68rem;
    }
}

/* Secciones */
section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* ===================
   HERO CON VIDEO - Estilos específicos
   =================== */
.hero-video-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    min-height: -webkit-fill-available; /* Para dispositivos iOS */
}

/* Contenedor de vídeo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 90, 135, 0.85), rgba(0, 115, 168, 0.85)), url('/api/placeholder/1600/900');
    background-size: cover;
    background-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.6);
    /* Combinamos ambos gradientes para usar los colores de la variable */
    background: linear-gradient(to bottom, rgba(var(--primary-color), 0.8), rgba(var(--secondary-color), 0.6));
    background: linear-gradient(to bottom, rgba(0, 90, 135, 0.8), rgba(0, 115, 168, 0.6));
}

/* Contenido del hero con vídeo */
.hero-video-section .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero-video-section .hero-content h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-video-section .hero-content .lead {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: white;
}
.hero-content {
    height: calc(100vh - 120px); /* Ajusta espacio para logos */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 80px !important; /* Espacio para logos */
}

.hero-content .highlight {
    color: var(--highlight-color);
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: var(--highlight-color);
}

.hero-subtitle {
    margin-bottom: 2rem;
}

.hero-subtitle .badge {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    background-color: var(--primary-color);
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Indicador de scroll animado */
.hero-scroll-indicator {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
}

.scroll-down:hover {
    color: white;
}

.mouse {
    position: relative;
    display: block;
    width: 30px;
    height: 50px;
    margin: 0 auto 10px;
    border: 2px solid white;
    border-radius: 20px;
}

.wheel {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background-color: white;
    border-radius: 2px;
    animation: scroll 2s ease infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* ====================
   RESTO DE ESTILOS DEL SITIO
   ==================== */

/* Hero Section estándar (mantener para compatibilidad) */
.hero-section {
    background: linear-gradient(rgba(0, 90, 135, 0.85), rgba(0, 115, 168, 0.85)), url('/api/placeholder/1600/600');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 120px 0;
    margin-bottom: 2rem;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.hero-section h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 90, 135, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Lista de grupo */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.3s;
    padding: 15px 20px;
}

.list-group-item:hover {
    border-left-color: var(--accent-color);
    background-color: rgba(0, 90, 135, 0.05);
}

/* Acordeón */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 90, 135, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 90, 135, 0.25);
}

/* Iconos de características */
.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 90, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

/* Tabla */
.table {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

/* Líneas de investigación */
.linea-investigacion {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.linea-investigacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.linea-investigacion .bi {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Logos de colaboradores */
.colaborador-logo {
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.colaborador-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contador de estadísticas */
.stats-counter {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin: 30px 0;
}

.stats-counter .counter-box {
    text-align: center;
    margin-bottom: 30px;
}

.stats-counter .counter-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stats-counter .counter-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline de hitos */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -60px;
}

.timeline-date {
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Testimonios */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: rgba(0, 90, 135, 0.1);
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}

.testimonial-content {
    padding-left: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author-info {
    line-height: 1.2;
}

.author-name {
    font-weight: 700;
    color: var(--dark-color);
}

.author-role {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-button {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: white;
}

.footer-social a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.video-card {
    color: inherit;
}

.video-card:hover .video-thumb img {
    transform: scale(1.04);
}

.video-thumb {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-thumb img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 90, 135, .92);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
}

.video-duration {
    position: absolute;
    right: .65rem;
    bottom: .65rem;
    padding: .2rem .45rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.video-title {
    line-height: 1.25;
}

.instagram-block {
    border-top: 4px solid var(--accent-color);
}

.instagram-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.instagram-embed iframe,
.instagram-widget iframe {
    max-width: 100% !important;
}

.instagram-post img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.video-consent-poster {
    background-size: cover;
    background-position: center;
}

/* Noticias */
.news-card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 90, 135, .1);
}

.news-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #dfeaf0;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.04);
}

.news-card__body {
    padding: 1.35rem;
}

.news-card__date {
    margin-bottom: .65rem;
    color: #667789;
    font-size: .86rem;
    font-weight: 700;
}

.news-card h2,
.news-card h3 {
    margin-bottom: .75rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.3;
}

.news-card h2 a,
.news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.news-card h2 a:hover,
.news-card h3 a:hover {
    color: var(--secondary-color);
}

.news-grid .news-card {
    max-width: 430px;
    margin-inline: auto;
}

.news-page {
    background: #f4f8fb;
    min-height: 100vh;
}

.news-archive-hero,
.news-detail-hero {
    padding: 112px 0 54px;
    background:
        linear-gradient(120deg, rgba(0, 73, 112, .95), rgba(0, 115, 168, .9)),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: auto, 52px 52px, 52px 52px;
    color: #fff;
}

.news-archive-hero h1,
.news-detail-hero h1 {
    max-width: 900px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    text-shadow: 0 3px 18px rgba(0, 24, 38, .28);
}

.news-archive-hero p,
.news-detail-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.08rem;
}

.news-eyebrow {
    margin-bottom: .85rem;
    color: #bfefff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.news-archive-section {
    padding: 52px 0 72px;
}

.news-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    max-width: 760px;
    margin-inline: auto;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
    text-decoration: none;
}

.news-back-link:hover {
    color: #fff;
}

.news-detail-container {
    padding: 48px 0 72px;
}

.news-detail-image {
    display: block;
    width: min(100%, 980px);
    aspect-ratio: 16 / 8;
    max-height: 460px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 40, 64, .16);
}

.news-detail-body {
    max-width: 820px;
    margin: 42px auto 0;
    padding: 34px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 35, 56, .08);
    font-size: 1.05rem;
    line-height: 1.78;
}

.news-detail-body p,
.news-detail-body li,
.news-card__body > p:not(.news-card__date) {
    text-align: justify;
    text-justify: inter-word;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.25;
}

@media (max-width: 575.98px) {
    .news-search {
        grid-template-columns: 1fr;
    }

    .news-detail-body {
        padding: 24px;
    }
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =====================
   ESTILOS RESPONSIVE
   ===================== */

@media (max-width: 992px) {
    /* Responsive para hero-section estándar */
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    /* Responsive para hero con video */
    .hero-video-section {
        height: auto;
        min-height: 600px;
        padding: 80px 0 100px;
    }

    .hero-video-section .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-video-section .hero-content .lead {
        font-size: 1.3rem;
    }

    /* Responsive para timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -50px;
    }
}

@media (max-width: 768px) {
    /* Responsive para hero estándar */
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    /* Responsive para hero con video */
    .hero-video-section {
        min-height: 550px;
        padding: 60px 0 80px;
    }

    .hero-video-section .hero-content h1 {
        font-size: 2rem;
    }

    .hero-video-section .hero-content .lead {
        font-size: 1.1rem;
    }

    .hero-subtitle .badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 8px 20px !important;
    }

    /* Resto de elementos responsive */
    section {
        padding: 40px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    /* Responsive para hero estándar */
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Responsive para hero con video */
    .hero-video-section {
        min-height: 500px;
        padding: 50px 0 70px;
    }

    .hero-video-section .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .hero-scroll-indicator {
        position: absolute;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Resto de elementos responsive */
    section {
        padding: 30px 0;
    }
}
/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .hero-video-section .hero-content h1 {
        font-size: 2rem;
    }

    .hero-video-section .hero-content .lead {
        font-size: 1.2rem;
    }

    .hero-video-section .hero-content .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
/* Estilos para los logos del hero */

.hero-logos {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65px; /* Altura fija para todos los contenedores */
}
.hero-logo {
    max-height: 100px; /* Altura máxima uniforme */
    max-width: 100%; /* Para mantener proporción */
    width: auto;
    /* filter: brightness(0) invert(1); /* Para logos blancos */
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain; /* Mantiene proporción sin distorsión */
}

.hero-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Ajustes responsivos para los logos */
@media (max-width: 768px) {
    .hero-logos {
        bottom: 70px;
    }

    .hero-logo {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-logos {
        bottom: 90px;
    }

    .hero-logo {
        max-height: 30px;
    }
}

/* Ajustes para la imagen en la sección de introducción */
.image-container {
    width: 100%;
    height: 350px; /* Altura fija, ajusta según necesites */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la imagen cubra todo el contenedor */
    object-position: center; /* Centra la imagen dentro del contenedor */
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .image-container {
        height: 300px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .image-container {
        height: 250px;
    }
}
.object-fit-cover {
    object-fit: cover;
}
  /* Encabezado con degradado suave */
  .custom-card-header {
    background:  #cedbe7;
    color: #ffffff;
  }
  /* Ítems de la lista: fondo claro, borde sutil y radio */
  .custom-list-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    margin-bottom: .75rem;
    padding: 1rem;
  }
  /* Iconos de check con color resaltado */
  .custom-list-item i {
    color: #4CA1AF;
    font-size: 1.25rem;
    vertical-align: middle;
    margin-right: .5rem;
  }
  .profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .profile-image:hover {
    transform: scale(1.1);
    border-color: #0d6efd;
  }

  .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }

  .table thead th {
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
  }

  .table td {
    vertical-align: middle;
    padding: 0.75rem;
  }

  .badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 4px;
  }
/* Añade esto al final de tu styles.css */

/* ===================
   RESPONSIVE HERO SECTION
   =================== */
   @media (max-width: 992px) {
    .hero-video-section {
        min-height: 80vh;
        padding: 40px 0;
    }

    .hero-content h1.display-4 {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    .hero-content .lead {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        margin-bottom: 2rem !important;
    }

    .hero-subtitle .badge {
        width: 100%;
        margin: 5px 0 !important;
        text-align: left;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        font-size: 0.95rem;
        padding: 12px 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-video-section {
        height: 100dvh; /* Usa viewport dinámico */
        min-height: unset;
    }
    .hero-content {
        height: calc(100dvh - 100px);
        padding: 0 15px !important;
        justify-content: flex-start;
        padding-top: 20% !important;
    }
    .hero-content h1.display-4 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    .hero-content .lead {
        font-size: 1.1rem !important;
    }

    .hero-logos {
        padding: 10px 0;
    }

    .hero-logo-container {
        height: 40px;
    }

    .hero-logo {
        max-height: 35px !important;
    }

    .hero-scroll-indicator {
        /* display: none; */
        position: absolute;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .hero-video-section {
        height: 100dvh;
    }

    .hero-content {
        padding-top: 15% !important;
        height: calc(100dvh - 80px);
    }

    .hero-content h1.display-4 {
        font-size: 1.6rem !important;
    }

    .hero-content .lead {
        font-size: 1rem !important;
    }

    .hero-subtitle .badge {
        font-size: 0.75rem;
        padding: 6px 10px;
        margin: 3px 0 !important;
    }

    .hero-logos .row {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .hero-logo-container {
        height: 45px;
    }

    .hero-logo {
        max-height: 35px !important;
    }

    .video-overlay {
        background: rgba(0, 40, 80, 0.7) !important;
    }
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 15px !important;
    }
}

/* Ajustes específicos para tablets en horizontal */
@media (max-width: 992px) and (orientation: landscape) {
    .hero-video-section {
        height: -webkit-fill-available;
    }
    .hero-content h1.display-4 {
        font-size: 2rem !important;
    }
}

/* Estilos adicionales para el panel de próximas actividades */
/* Añadir estos estilos a su archivo CSS existente */

/* Ajuste del tamaño de tarjetas en móviles */
@media (max-width: 768px) {
    .card-title.fs-5 {
      font-size: 1rem !important;
    }

    .card .small {
      font-size: 0.85rem;
    }

    .card-body.p-3 {
      padding: 0.75rem !important;
    }

    /* Mejora el espaciado entre el icono y el texto */
    .bg-primary.bg-opacity-10.rounded-circle {
      margin-top: 0.25rem;
    }
  }

  /* Transición suave al pasar el ratón */
  .card.shadow-sm {
    transition: all 0.3s ease;
  }

  .card.shadow-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
  }

  /* Asegura que los iconos estén centrados */
  .d-flex.align-items-center.justify-content-center i {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mejora la legibilidad del texto */
  .card-text.small {
    line-height: 1.5;
  }

  /* Botón de llamada a la acción */
  .btn-primary {
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 500;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 135, 0.3);
  }

  /* Asegura que todas las tarjetas tengan la misma altura mínima */
  @media (min-width: 768px) {
    .card.h-100 {
      min-height: 180px;
    }
  }

/* Timeline de actividades */
.actividades-timeline {
    position: relative;
}

.actividad-item {
    position: relative;
    margin-bottom: 40px;
}

.actividad-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.actividad-item.completada .actividad-badge {
    background-color: #d4edda;
    color: #155724;
}

.actividad-item.proxima .actividad-badge {
    background-color: #cce5ff;
    color: #004085;
}

.actividad-item.futura .actividad-badge {
    background-color: #f8f9fa;
    color: #6c757d;
}

.actividad-fecha {
    font-size: .95rem;
    color: #6c757d;
}

.actividad-titulo {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.actividad-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.btn-programa {
    --programa-color: var(--primary-color);
    --programa-bg: rgba(0, 90, 135, .08);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 90, 135, .28);
    background: var(--programa-bg);
    color: var(--programa-color);
    font-weight: 700;
}

.btn-programa:hover,
.btn-programa:focus {
    border-color: var(--programa-color);
    background: var(--programa-color);
    color: #fff;
}

.webinar-icon-container {
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 90, 135, .05) 0%, rgba(0, 115, 168, .05) 100%);
    border-radius: 15px;
}

/* Ficha publica de actividad */
.activity-detail-page {
    background: #f4f8fb;
}

.activity-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 56px;
    background:
        linear-gradient(120deg, rgba(0, 70, 108, .96), rgba(0, 101, 139, .92)),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    color: #fff;
}

.activity-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
    text-decoration: none;
}

.activity-back-link:hover,
.activity-back-link:focus {
    color: #fff;
}

.activity-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 42px;
    align-items: center;
}

.activity-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.activity-state-badge.is-completed {
    background: rgba(205, 239, 223, .18);
    color: #d9f7e7;
}

.activity-state-badge.is-upcoming {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.activity-state-badge.is-planned {
    background: rgba(255, 213, 102, .2);
    color: #fff1c2;
}

.activity-detail-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 3.4rem;
    line-height: 1.07;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 3px 18px rgba(0, 24, 38, .34);
}

.activity-detail-hero__lead {
    max-width: 760px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.14rem;
    line-height: 1.7;
}

.activity-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin-bottom: 28px;
}

.activity-hero-meta div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 700;
}

.activity-hero-meta i {
    color: #8ad8ee;
}

.activity-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.activity-detail-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.activity-detail-actions .btn-programa {
    border-color: rgba(255, 255, 255, .52);
    background: rgba(255, 255, 255, .13);
    color: #fff;
}

.activity-detail-actions .btn-programa:hover,
.activity-detail-actions .btn-programa:focus {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color);
}

.activity-detail-hero__media {
    position: relative;
}

.activity-detail-hero__media::before {
    content: "";
    position: absolute;
    inset: 20px -14px -14px 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
}

.activity-detail-hero__media img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(0, 30, 48, .38);
}

.activity-detail-body {
    padding: 54px 0 70px;
}

.activity-panel {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(0, 90, 135, .16);
}

.activity-panel:last-child {
    margin-bottom: 0;
}

.activity-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(0, 90, 135, .09);
    color: var(--primary-color);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.activity-panel h2,
.activity-side-card h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.activity-description {
    font-size: 1.02rem;
    line-height: 1.75;
}

.activity-program {
    position: relative;
    display: grid;
    gap: 0;
}

.activity-program::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 112px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), #2fb9c8);
}

.activity-program__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 34px;
    position: relative;
    padding: 0 0 22px;
}

.activity-program__item::before {
    content: "";
    position: absolute;
    left: 105px;
    top: 8px;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 90, 135, .14);
    z-index: 1;
}

.activity-program__time {
    padding-top: 2px;
    color: var(--primary-color);
    font-weight: 800;
}

.activity-program__content {
    padding: 0 0 20px;
}

.activity-program__content h3 {
    margin: 0 0 7px;
    color: #1f2d3d;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.activity-program__speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.activity-program__speakers span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e7f4f7;
    color: #24515f;
    font-size: .82rem;
    font-weight: 700;
}

.activity-speaker-card {
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(0, 90, 135, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 35, 56, .06);
}

.activity-speaker-card__time {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: .8rem;
    font-weight: 800;
}

.activity-speaker-card h3 {
    margin: 0 0 8px;
    color: #203040;
    font-size: 1rem;
    font-weight: 800;
}

.activity-speaker-card p {
    margin-bottom: 10px;
    color: #63707c;
    font-size: .92rem;
}

.activity-speaker-card strong {
    display: block;
    color: #33485c;
    font-size: .92rem;
}

.activity-side-stack {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.activity-side-card {
    padding: 22px;
    border: 1px solid rgba(0, 90, 135, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 35, 56, .07);
}

.activity-side-card--accent {
    border-top: 4px solid var(--primary-color);
}

.activity-facts {
    display: grid;
    gap: 14px;
    margin: 0;
}

.activity-facts div {
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f5;
}

.activity-facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-facts dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7785;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.activity-facts dt i {
    color: var(--primary-color);
}

.activity-facts dd {
    margin: 5px 0 0;
    color: #1f2d3d;
    font-weight: 700;
}

.activity-capacity .progress {
    height: 8px;
    border-radius: 999px;
    background: #e8eef2;
}

.activity-capacity .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #22b8c8);
}

@media (max-width: 991.98px) {
    .activity-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .activity-detail-hero__media {
        order: -1;
    }

    .activity-side-stack {
        position: static;
    }

    .activity-detail-hero h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 575.98px) {
    .activity-detail-hero {
        padding: 28px 0 40px;
    }

    .activity-detail-hero h1 {
        font-size: 2rem;
    }

    .activity-hero-meta {
        grid-template-columns: 1fr;
    }

    .activity-detail-actions .btn {
        width: 100%;
    }

    .activity-program::before {
        left: 8px;
    }

    .activity-program__item {
        grid-template-columns: 1fr;
        gap: 7px;
        padding-left: 34px;
    }

    .activity-program__item::before {
        left: 1px;
    }

    .activity-program__content {
        padding-bottom: 18px;
    }
}
