/* Estilos personalizados mínimos para toque corporativo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: #8246AF;
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

.top-bar {
    background-color: #8246AF;
    color: #ffffff;
}

    .top-bar a,
    .top-bar-link {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .top-bar a:hover,
    .top-bar-link:hover {
        text-decoration: underline !important;
    }

.navbar {
    background-color: #3B4559;
}

    .navbar .nav-link {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .navbar .nav-link:hover {
            color: #ffffff;
            text-decoration: underline;
        }

        .navbar .nav-link.active {
            color: #ffffff;
            text-decoration: underline;
        }

.navbar-brand img {
    max-height: 40px;
}

.footer-primary {
    background-color: #3B4559;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-secondary {
    background-color: #FFFFFF;
    color: #3B4559;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-secondary a {
    color: #8246AF;
    text-decoration: none;
}

.footer-secondary a:hover {
    color: #8246AF;
    text-decoration: underline;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.footer-social-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

    .footer-social-link i {
        color: #ffffff !important;
        transition: color 0.3s ease;
    }

    .footer-social-link:hover {
        transform: translateY(-4px) scale(1.1);
        color: #ffffff !important;
        text-decoration: none !important;
    }

.blog-logo-link img {
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

    .blog-logo-link:hover img {
        opacity: 1;
        transform: translateY(-4px) scale(1.05);
    }

.video-wrapper-home {
    width: 100%;
    /* Eliminamos height fijo o 100vh para que dependa del video */
    overflow: hidden;
    line-height: 0; /* Elimina espacios extra debajo del video en algunos navegadores */
    border-radius: 20px;
}

.video-home {
    width: 100%; /* Ocupa todo el ancho disponible */
    height: auto; /* La altura se calcula sola para mantener la proporción */
    display: block; /* Evita comportamientos extraños de inline elements */
}

/*Home*/
.listado-importante {
    padding: 5rem 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.listado-importante ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.listado-importante ul li {
    margin: 1rem;
    list-style: none;
}

.listado-importante ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem;
    min-width: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
}

.listado-importante ul li a:hover {
    background: transparent;
    border: none;
    transform: translateY(-8px);
    box-shadow: none;
}

.listado-importante ul li .infor-relev-item {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.listado-importante ul li .comunicados-item {
    background: linear-gradient(135deg, #5ACBEB 0%, #3ca0bc 100%);
}

.listado-importante ul li .corporativa-item {
    background: linear-gradient(135deg, #DBE341 0%, #b2ba2c 100%);
}

.listado-importante ul li .deuda-item {
    background: linear-gradient(135deg, #FFBE3E 0%, #d6981e 100%);
}

.listado-importante ul li .infor-relev-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.listado-importante ul li a:hover .infor-relev-item {
    transform: scale(1.1) rotate(5deg);
}

.listado-importante-title {
    font-size: 1.1rem;
    color: #3b4559;
    margin-top: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.listado-importante ul li a:hover .listado-importante-title {
    color: #3b4559;
    text-decoration: underline;
}

/* Sección Información Relevante (Home) */
.informacion-relevante .img-relevante {
    object-fit: cover;
    max-height: 400px;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#listaRelevante li {
    background-color: #3B4559 !important;
    border: none !important;
    border-radius: 8px;
    color: #ffffff !important;
}

#listaRelevante li h5 {
    color: #ffffff !important;
}

#listaRelevante .wrapper-icon-reportes i {
    color: #ffffff !important;
}

#listaRelevante .wrapper-incon-dowload {
    background-color: #3B4559 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#listaRelevante .wrapper-incon-dowload i {
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#listaRelevante .wrapper-incon-dowload:hover {
    background-color: #3B4559 !important;
    border: none !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.1);
    box-shadow: none !important;
}

.titulo-relevante {
    border-bottom: 2px solid #e9ecef;
}

/* Chips de enlaces */
.chip-link {
    display: inline-flex;
    align-items: center;
    background-color: rgba(59, 69, 89, 0.08);
    color: #3B4559;
    border: 1px solid rgba(59, 69, 89, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-link:hover {
    background-color: #3B4559;
    color: #ffffff;
    border-color: #3B4559;
    box-shadow: 0 6px 16px rgba(59, 69, 89, 0.25);
}

.chip-link-pdf {
    background-color: #3B4559;
    color: #ffffff;
    border-color: #3B4559;
}

.chip-link i {
    font-size: 1.15rem;
    line-height: 1;
    -webkit-text-stroke: 0.5px currentColor;
    transition: transform 0.3s ease;
}

.chip-link-pdf i {
    font-size: 1.15rem;
    line-height: 1;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.3s ease;
}

.chip-link:hover i,
.chip-link-pdf:hover i {
    transform: translateY(-2px) scale(1.1);
}

.chip-link-pdf:hover {
    background-color: #2b3342;
    color: #ffffff;
    border-color: #2b3342;
    box-shadow: 0 6px 16px rgba(59, 69, 89, 0.3);
}

/* Equipo Directivo */
.card-directivo {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: none;
    height: 100%;
}

.card-directivo:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.directivo-foto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.directivo-foto-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(59, 69, 89, 0.1);
    color: #3B4559;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.directivo-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3B4559;
    margin-bottom: 0.25rem;
}

.directivo-puesto {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Sección Estructura Corporativa con fondo diferencial */
.seccion-estructura-wrapper {
    background-color: #5ACBEB;
    color: #ffffff;
    padding: 4rem 0;
}

/* Estructura Corporativa Tabla */
.table-corporativa-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 31, 40, 0.06);
    border: 1px solid #e2e8f0;
}

.table-corporativa {
    width: 100%;
    margin-bottom: 0;
    background-color: #ffffff;
}

.table-corporativa thead {
    background-color: #8246AF;
    color: #ffffff;
}

.table-corporativa thead th {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-corporativa tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-corporativa tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

.table-corporativa tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.table-corporativa tbody tr:last-child {
    border-bottom: white;
}

.table-corporativa tbody tr:hover {
    background-color: rgba(79, 46, 194, 0.08);
}

.table-corporativa tbody td {
    padding: 1.1rem 1.25rem;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Sección Historia */
.img-historia {
    object-fit: cover;
    max-height: 400px;
}

/* Sección Consejo de Administración con fondo contraste Totalplay */
.seccion-consejo-wrapper {
    background: linear-gradient(135deg, #8246AF 0%, #3B4559 100%);
    color: #ffffff;
    padding: 4rem 0;
}