@import url(root.css);
header {
    position: relative;
    height: 100vh;
}

/* Superposición y título de cabecera */
.header-title {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    background: rgba(0, 11, 32, 0.39);
    /* OPTIMIZACIÓN: Formato sintáctico estandarizado */
    font-family: var(--fuente-secundaria);
    display: flex;
    flex-direction: column;
    word-spacing: 10px;
    align-items: start;
    justify-content: center;
    padding: 0 0 0 100px;
}

.header-title h1 {
    color: #f0f0f0;
    line-height: 1.3em;
    margin: 0 0 15px;
    /* OPTIMIZACIÓN: Tipografía fluida con clamp(mínimo, preferido, máximo) */
    font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.header-title h1 span {
    word-spacing: 5px;
    font-weight: 600;
    color: #fff;
}

.header-title a {
    background-color: var(--color-principal);
    color: var(--color-secundario-claro);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1em;
    letter-spacing: 1.5px;
    /* OPTIMIZACIÓN: Reemplazado 'transition: all' por propiedades específicas para no saturar el renderizado */
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.header-title a:hover {
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
}

.header-title .animate-container a:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .header-title {
        align-items: center;
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 500px) {
    .header-title a {
        font-weight: 500;
        font-size: 0.8em;
    }
}

.carousel-inner img {
    width: 100%;
    height: 100vh;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.carousel-inner .filter {
    filter: contrast(1.1);
}

/* Spinner e indicador de carga inicial */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-principal);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-principal-claro);
    border-top: 5px solid var(--color-secundario-claro);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   2. BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 25px;
}

.container {
    max-width: 1300px !important;
}

.navbar .logo {
    top: 0;
    left: 80px;
    position: absolute;
    display: inline-block;
}

.navbar-brand.logo img {
    width: 135px;
    height: auto;
}

.navbar-nav {
    margin-top: 0.9em !important;
}

.navbar .nav-item {
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link {
    padding-left: 1em !important;
    padding-right: 1em !important;
}

.nav-item .nav-link,
.navbar-nav .nav-link.active {
    font-weight: 500;
    color: #fff;
    transition: color 0.25s ease;
}

.nav-item:hover {
    background-color: var(--color-principal);
}

.nav-item:hover,
.nav-link:hover,
.nav-link.active:hover {
    color: var(--color-secundario-claro);
}

.nav-link:focus,
.nav-link:focus .nav-item {
    background-color: var(--color-principal);
    color: var(--color-secundario-claro);
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
    outline: 0;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-secundario-claro);
    border-radius: 2px;
    transform-origin: left center;
    /* OPTIMIZACIÓN: Transición explícita */
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: -1px;
    left: 3px;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
    left: 3px;
}

/* Desplegables de la navegación */
.custom-accordion-menu {
    position: relative;
    width: 100%;
}

.custom-accordion-menu .accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0.3s ease-in-out;
}

.custom-accordion-menu.open .accordion-list {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.custom-accordion-menu .accordion-inner {
    overflow: hidden;
    padding-left: 0.5rem;
}

.accordion-item-link {
    display: block;
    padding: 0.5rem 0.6rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 550;
    /* OPTIMIZACIÓN: Transición específica */
    transition: color 0.2s ease, background-color 0.2s ease;
}

.accordion-item-link:hover {
    color: var(--color-secundario-claro);
    background-color: var(--color-principal-claro);
}

@media (min-width: 992px) {
    .navbar .accordion-inner {
        background-color: var(--color-principal);
    }

    .custom-accordion-menu {
        width: auto;
    }

    .custom-accordion-menu .accordion-list {
        position: absolute;
        top: 100%;
        left: 0px;
        min-width: 160px;
        background-color: var(--color-principal);
        z-index: 3;
        border-radius: 0 0 4px 4px;
        overflow: hidden;
    }

    .custom-accordion-menu .accordion-inner {
        padding: 0;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0;
    }

    .navbar .logo {
        position: static;
    }

    .navbar-brand.logo img {
        width: 75px;
    }

    nav {
        background-color: #021527;
    }

    nav .last {
        padding-bottom: 35px;
    }

    .custom-accordion-menu .accordion-list {
        background-color: var(--color-opaco-principal);
    }
}

/* ==========================================================================
   3. SECCIÓN PRINCIPAL (MAIN)
   ========================================================================== */
main {
    height: 100%;
    display: flex;
    background-color: #fff;
}

main .main {
    width: 50%;
    height: 100%;
}

.left-main {
    display: flex;
    flex-direction: column;
    padding: 80px 40px 80px 60px;
}

.left-main p:first-child {
    color: var(--color-secundario);
    border-bottom: 1.8px solid var(--color-secundario);
    font-weight: 500;
    font-size: 1.1em;
}

.left-main h1 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida */
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.left-main p:nth-of-type(2) {
    color: #5e5e5e;
    font-size: 0.97em;
}

.left-main .numbers-counter {
    width: 100%;
    display: flex;
    justify-content: center;
}

.left-main .numbers-counter .number {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-main .numbers-counter .number .contador,
.plus {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-secundario);
    font-weight: 650;
    font-size: 2em;
}

.left-main .numbers-counter .number p {
    font-weight: 500;
    font-size: 1.1em;
    color: var(--color-secundario);
}

.right-main {
    overflow: hidden;
    padding: 0;
}

.right-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adaptabilidad responsive de la sección Main */
@media (max-width: 1099px) {
    main {
        height: auto;
        flex-direction: column;
    }

    main .main {
        width: 100%;
        height: 100%;
    }

    .left-main {
        flex-direction: column;
        padding: 80px 60px 40px;
    }

    .left-main h1 {
        text-align: center;
    }

    .left-main p:nth-of-type(2) {
        margin: 10px 0 40px;
        text-align: center;
    }

    .left-main .numbers-counter {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        gap: 15px;
    }

    .left-main .numbers-counter .number {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .right-main {
        overflow: hidden;
    }

    .right-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 918px) {
    main {
        width: 100%;
        height: 100%;
        background: url(/imagenes/Crucero2.jpg);
        background-position: center center;
        background-size: cover;
        padding: 0;
    }

    main .main {
        width: 100%;
        height: 100%;
        padding: 80px;
    }

    .left-main {
        background: var(--color-opaco-principal);
        flex-direction: column;
    }

    .left-main p:first-child {
        padding: 10px 0 0;
        font-weight: 500;
        font-size: 1.09em;
        color: var(--color-secundario-claro);
        border-bottom: 1.8px solid var(--color-secundario-claro);
    }

    .left-main h1 {
        color: #fff;
        text-align: center;
    }

    .left-main p:nth-of-type(2) {
        color: #dbdbdb;
        margin: 10px 0;
        text-align: center;
        font-size: 0.95em;
    }

    .left-main .numbers-counter {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .left-main .numbers-counter .number {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left-main .numbers-counter .number .contador,
    .plus {
        color: var(--color-secundario-claro);
        font-weight: 650;
        font-size: 2em;
    }

    .left-main .numbers-counter .number p {
        color: var(--color-secundario-claro);
        font-weight: 500;
        font-size: 1.1em;
    }

    .right-main {
        display: none;
    }
}

@media (max-width: 745px) {
    .left-main p:first-child {
        padding: 10px 0 0;
        font-weight: 500;
        font-size: 0.9em;
        color: var(--color-secundario-claro);
        border-bottom: 1.8px solid var(--color-secundario-claro);
    }

    .left-main p:nth-of-type(2) {
        color: #dbdbdb;
        margin: 10px 0;
        text-align: center;
        font-size: 0.85em;
    }

    .left-main .numbers-counter .number {
        padding: 5px 20px;
    }

    .left-main .numbers-counter .number .contador,
    .plus {
        font-size: 1.8em;
    }

    .left-main .numbers-counter .number p {
        font-size: 1em;
    }
}

@media (max-width: 592px) {
    main {
        width: 100%;
        height: auto;
    }

    main .main {
        width: 100%;
        height: 100%;
        padding: 60px 60px 40px 60px;
        justify-content: center;
    }

    .left-main p:first-child {
        font-size: 0.9em;
    }

    .left-main h1 {
        color: #fff;
        text-align: center;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-secundario-claro);
    }

    .left-main p:nth-of-type(2) {
        position: relative;
        color: #dbdbdb;
        margin: 10px 0;
        text-align: center;
        font-size: 0.83em;
    }

    .left-main .numbers-counter {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .left-main .numbers-counter .number {
        padding: 0 20px;
    }

    .left-main .numbers-counter .number .contador,
    .plus {
        font-size: 1.6em;
    }

    .left-main .numbers-counter .number p {
        font-size: 0.9em;
    }
}

/* ==========================================================================
   4. SECCIÓN DE CURSOS (ACORDEÓN DESPLEGABLE)
   ========================================================================== */
.courses-section {
    height: auto;
    background: linear-gradient(var(--color-opaco-principal), var(--color-opaco-principal)), url(/imagenes/Fondo-Maritimo.webp);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

.courses-description {
    background: var(--color-principal);
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    padding: 40px 60px;
}

.courses-description p:first-child {
    text-align: left;
    color: var(--color-secundario-claro);
    border-bottom: 1.8px solid var(--color-secundario-claro);
    font-weight: 500;
    font-size: 1.1em;
    margin: 0 0 25px;
}

.courses-description h1 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida con clamp() */
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.courses-description p:nth-of-type(2) {
    color: #eeeeee;
    font-size: 0.97em;
    line-height: 2em;
}

.courses-description .fa-angle-down {
    color: var(--color-secundario-claro);
    font-size: 1.5em;
}

.accordion-gallery {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
}

.panel {
    height: 100vh;
    background: var(--color-opaco-principal);
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid var(--color-principal);
    border-right: 1px solid var(--color-principal);
    /* OPTIMIZACIÓN: Reemplazado 'all' por propiedades 'flex' y 'filter' */
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0.1s;
}

/* Nota: Estructura de anidamiento preservada según tus indicaciones */
.courses-section .accordion-gallery .panel:first-child {
    background: url(/imagenes/Logo\ OMI\ Completo.png);
    background-size: 170px;
    background-position: center center;
    background-repeat: no-repeat;
}

.courses-section .accordion-gallery .panel:nth-of-type(2) {
    background: url(/imagenes/Logo\ Marina\ Mercante\ Completo.png);
    background-size: 170px;
    background-position: center center;
    background-repeat: no-repeat;
}

.courses-section .accordion-gallery .panel:nth-of-type(3) {
    background: url(/imagenes/Logo\ Bahia\ Completo.png);
    background-position: center center;
    background-size: 170px;
    background-repeat: no-repeat;
}

.courses-section .accordion-gallery .panel:nth-of-type(4) {
    background: url(/imagenes/Logo\ Nautica\ Recreativa\ Completo.png);
    background-size: 200px;
    background-position: center center;
    background-repeat: no-repeat;
}

.courses-section .accordion-gallery .panel:nth-of-type(5) {
    background: url(/imagenes/Logo\ Pesca\ Completo.png);
    background-size: 170px;
    background-position: center center;
    background-repeat: no-repeat;
}

.panel img {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    /* OPTIMIZACIÓN: Transiciones específicas */
    transition: opacity 0.25s ease, transform 0.25s ease;
    background-color: #fff;
}

.courses-section .accordion-gallery .panel:first-child img {
    object-fit: contain;
}

.panel::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(2, 21, 39, 0.87) 0%, rgba(2, 21, 39, 0.57) 60%, rgba(2, 21, 39, 0) 100%);
    z-index: 2;
    /* OPTIMIZACIÓN: Transición específica */
    transition: opacity 0.6s ease;
}

.panel-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    /* OPTIMIZACIÓN: Transición en transform y opacity para aceleración por GPU */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.panel-content h3 {
    font-size: 1.9em;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
}

.panel-content p {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #eeeeee;
}

.panel-btn {
    display: inline-block;
    pointer-events: none;
    padding: 10px 20px;
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* OPTIMIZACIÓN: Transición acotada a las propiedades modificadas en hover */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    width: 100%;
    text-align: center;
}

.panel-btn:hover {
    background-color: var(--color-principal);
    color: var(--color-secundario-claro);
    transform: translateY(-2px);
}

.accordion-gallery .panel.is-open .panel-btn {
    pointer-events: auto;
}

@media (min-width: 901px) {

    .accordion-gallery .panel .panel-content,
    .accordion-gallery .panel img,
    .accordion-gallery .panel::after {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.15s ease, transform 0.15s ease;
        transition-delay: 0s;
    }

    .accordion-gallery:hover .panel {
        filter: brightness(0.8);
    }

    .accordion-gallery:hover .panel:first-child,
    .accordion-gallery:hover .panel:nth-of-type(2),
    .accordion-gallery:hover .panel:nth-of-type(3),
    .accordion-gallery:hover .panel:nth-of-type(5) {
        background-size: 140px;
    }

    .accordion-gallery:hover .panel:nth-of-type(4) {
        background-size: 165px;
    }

    .accordion-gallery:hover .panel:hover {
        flex: 3;
        filter: brightness(1);
    }

    .accordion-gallery:hover .panel:hover img {
        opacity: 1;
    }

    .accordion-gallery:hover .panel:hover .panel-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.35s;
    }

    .accordion-gallery:hover .panel:hover .panel-btn {
        pointer-events: auto;
    }

    .accordion-gallery:hover .panel:hover::after {
        opacity: 1;
        transition: opacity 0.3s ease;
        transition-delay: 0.2s;
    }
}

@media (max-width: 900px) and (min-width: 576px) {
    .accordion-gallery {
        flex-wrap: wrap;
        height: auto;
    }

    .panel {
        border: 1px solid var(--color-principal);
        flex: 0 0 calc(50%);
        height: 320px;
    }

    .courses-section .accordion-gallery .panel:first-child,
    .courses-section .accordion-gallery .panel:nth-of-type(2),
    .courses-section .accordion-gallery .panel:nth-of-type(3),
    .courses-section .accordion-gallery .panel:nth-of-type(5) {
        background-size: 200px;
    }

    .courses-section .accordion-gallery .panel:nth-of-type(4) {
        background-size: 230px;
    }

    .panel img {
        top: 0;
    }

    .panel-content h3 {
        font-size: 1.3em;
    }

    .panel-content p {
        font-size: 0.8em;
    }

    .panel:nth-child(5) {
        flex: 0 0 100%;
    }

    .panel-content {
        opacity: 0;
        transform: translateY(20px);
        /* OPTIMIZACIÓN: Transición específica */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .accordion-gallery .panel.is-open .panel-content,
    .accordion-gallery .panel:hover .panel-content {
        opacity: 1;
        transform: translateY(0);
    }

    .accordion-gallery .panel.is-open img,
    .accordion-gallery .panel:hover img {
        opacity: 1;
    }

    .accordion-gallery .panel.is-open::after,
    .accordion-gallery .panel:hover::after {
        opacity: 1;
    }

    .accordion-gallery .panel.is-open .panel-btn,
    .accordion-gallery .panel:hover .panel-btn {
        pointer-events: auto;
    }

    .accordion-gallery:hover .panel {
        filter: brightness(0.8);
    }

    .accordion-gallery:hover .panel:hover {
        filter: brightness(1);
    }
}

@media (max-width: 575px) {
    .courses-section {
        background: var(--color-principal);
    }

    .courses-description p:first-child {
        font-size: 1em;
    }

    .courses-description p:nth-of-type(2) {
        font-size: 0.8em;
    }

    .accordion-gallery {
        flex-direction: column;
        flex-wrap: nowrap;
        height: 100vh;
        min-height: 1200px;
    }

    .panel {
        flex: 1;
        width: 100%;
        height: 100%;
        padding: 50px 0;
    }

    .courses-section .accordion-gallery .panel:first-child,
    .courses-section .accordion-gallery .panel:nth-of-type(2),
    .courses-section .accordion-gallery .panel:nth-of-type(3),
    .courses-section .accordion-gallery .panel:nth-of-type(5) {
        background-size: 120px;
    }

    .courses-section .accordion-gallery .panel:nth-of-type(4) {
        background-size: 150px;
    }

    .panel img {
        top: 0;
    }

    .accordion-gallery:hover .panel {
        filter: brightness(0.9);
    }

    .accordion-gallery:hover .panel:first-child,
    .accordion-gallery:hover .panel:nth-of-type(2),
    .accordion-gallery:hover .panel:nth-of-type(4),
    .accordion-gallery:hover .panel:nth-of-type(5) {
        background-size: 100px;
    }

    .accordion-gallery:hover .panel:nth-of-type(3) {
        background-size: 120px;
    }

    .accordion-gallery:hover .panel:hover {
        flex: 3;
        filter: brightness(1);
    }

    .accordion-gallery:hover .panel:hover img {
        transform: scale(1.05);
    }

    .accordion-gallery:hover .panel:hover .panel-content {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }

    .accordion-gallery:hover .panel:hover img,
    .accordion-gallery:hover .panel:hover::after {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ==========================================================================
   5. NOTICIAS Y COMUNICADOS
   ========================================================================== */
.news-table {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: auto;
    background-color: var(--color-principal);
    padding: 45px 60px 80px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin: 0 0 45px;
}

.gallery-header h1 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida */
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-secundario-claro);
    margin-bottom: 8px;
}

.gallery-header p {
    color: #e9e9e9;
    font-size: 1.1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.news-image #naval {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.news-category {
    transform: translateX(-120px);
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    /* OPTIMIZACIÓN: Transición específica */
    transition: transform 0.2s ease;
}

.news-card:hover .news-category {
    transform: translateX(0);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-opaco-principal);
    margin-bottom: 8px;
}

.news-content h2 {
    font-size: 1.25rem;
    color: var(--color-principal);
    margin-bottom: 12px;
    line-height: 1.4;
}

.read-more {
    text-decoration: none;
    color: var(--color-secundario);
    font-weight: 600;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--color-secundario-claro);
}

/* Botón flotante para noticias */
.floating-news-btn {
    position: fixed;
    top: 25px;
    right: 15px;
    z-index: 2;
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.floating-news-btn:hover {
    background-color: var(--color-principal);
    color: var(--color-secundario-claro);
}

.floating-news-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .news-category {
        transform: translateX(0px);
    }
}

/* ==========================================================================
   6. PROMOCIONES Y CONTACTO EMPRESARIAL
   ========================================================================== */
.promotions-contact {
    height: 100vh;
    display: flex;
}

.promotions-contact-left,
.promotions-contact-right {
    width: 50%;
    overflow: hidden;
}

.promotions-contact-left img {
    width: 100%;
    height: 100%;
    display: block;
}

.promotions-contact-right {
    padding: 80px 60px 80px 40px;
    text-align: right;
}

.promotions-contact-right p:first-child {
    color: var(--color-secundario);
    border-bottom: 1.8px solid var(--color-secundario);
    font-weight: 500;
    font-size: 1.1em;
}

.promotions-contact-right h1 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida */
    font-size: clamp(1.25rem, 3.5vw, 2.2rem);
}

.promotions-contact-right p:nth-of-type(2) {
    color: #5e5e5e;
    font-size: 0.97em;
}

.promotions-contact-right a {
    color: var(--color-principal);
    font-weight: 550;
    font-size: 1.05em;
    letter-spacing: 1px;
    /* OPTIMIZACIÓN: Transición específica */
    transition: color 0.2s ease !important;
}

.promotions-contact-right a:hover {
    color: var(--color-principal-claro);
}

@media (max-width: 1099px) {
    .promotions-contact {
        height: auto;
        flex-direction: column-reverse;
    }

    .promotions-contact .promotions-contact-left,
    .promotions-contact .promotions-contact-right {
        width: 100%;
        height: 100%;
    }

    .promotions-contact-right {
        flex-direction: column;
        padding: 80px 60px 40px;
    }

    .promotions-contact-right h1 {
        text-align: center;
    }

    .promotions-contact-right p:nth-of-type(2) {
        margin: 10px 0 40px;
        text-align: center;
    }

    .promotions-contact-left {
        overflow: hidden;
    }

    .promotions-contact-left img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 918px) {
    .promotions-contact {
        width: 100%;
        height: 100%;
        background: url(/imagenes/frmEmpresas.webp);
        background-position: center center;
        background-size: cover;
        padding: 0;
    }

    .promotions-contact-right {
        width: 100%;
        height: 100%;
        padding: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-opaco-principal);
        flex-direction: column;
    }

    .promotions-contact-left {
        display: none;
    }

    .promotions-contact-right p:first-child {
        padding: 10px 0 0;
        font-weight: 500;
        font-size: 1.09em;
        color: var(--color-secundario-claro);
        border-bottom: 1.8px solid var(--color-secundario-claro);
    }

    .promotions-contact-right h1 {
        color: #fff;
        text-align: center;
    }

    .promotions-contact-right p:nth-of-type(2) {
        color: #dbdbdb;
        margin: 10px 0;
        text-align: center;
        font-size: 0.95em;
    }

    .promotions-contact-right a {
        color: var(--color-secundario-claro);
    }
}

@media (max-width: 745px) {
    .promotions-contact-right p:first-child {
        font-size: 0.9em;
    }

    .promotions-contact-right p:nth-of-type(2) {
        font-size: 0.85em;
    }
}

@media (max-width: 592px) {
    .promotions-contact {
        height: auto;
    }

    .promotions-contact-right {
        width: 100%;
        height: 100%;
        padding: 60px 60px 40px 60px;
        justify-content: center;
    }

    .promotions-contact-right p:first-child {
        font-size: 0.9em;
    }

    .promotions-contact-right h1 {
        padding-bottom: 0;
        border-bottom: none;
    }

    .promotions-contact-right p:nth-of-type(2) {
        position: relative;
        margin: 10px 0;
        font-size: 0.83em;
    }
}

/* ==========================================================================
   7. CARRUSEL DE PROMOCIONES
   ========================================================================== */
.promotions {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotions-description {
    width: 30%;
    height: 100%;
    background: url(/imagenes/BuqueMercante2.webp);
    background-size: cover;
    background-position: center;
}

.promotions-text {
    padding: 80px 40px;
    height: 100%;
    background: var(--color-opaco-principal);
}

.promotions-text h1 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida con clamp() */
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #fff;
    margin: 0 0 25px;
}

.promotions-text p:first-child {
    color: var(--color-secundario-claro);
    border-bottom: 1.8px solid var(--color-secundario);
    font-weight: 500;
    font-size: 1.1em;
}

.promotions-text p:first-child~p {
    color: #f1f1f1;
}

.promotions-text p:nth-of-type(2) {
    font-size: 1em;
    word-spacing: 8px;
}

.promotions-text p:nth-of-type(3),
.promotions-text p:nth-of-type(4) {
    font-size: 0.95em;
    margin-left: 15px;
}

.promotions-text p:last-child {
    text-align: center;
    font-size: 1.2em;
    font-weight: 200;
    margin: 25px 0;
}

.promotions-text svg {
    margin: 0 0 2.5px;
    background-color: var(--color-secundario-claro);
    border-radius: 50%;
    color: var(--color-principal);
}

.promotions-carousel {
    width: 70%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-principal);
}

/* Nota: Mantenida la especificidad con ID solicitada */
.promotions-carousel #carouselPromotions,
.promotions-carousel #carouselPromotions .carousel-inner,
.promotions-carousel #carouselPromotions .carousel-item {
    height: 100%;
}

.promotions-carousel #carouselPromotions .carousel-item .carousel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.carousel-item-text {
    height: 100%;
    flex: 0 0 50%;
    color: #fff;
    padding: 80px 50px 20px;
    text-align: center;
    position: relative;
}

.carousel-item-text h2 {
    font-family: var(--fuente-secundaria);
    /* OPTIMIZACIÓN: Tipografía fluida */
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--color-secundario);
    font-weight: 600;
    margin: 0 0 25px;
    filter: brightness(1.2);
}

.carousel-item-text p {
    color: #ebebeb;
    font-size: 0.95em;
    margin: 0 0 25px;
    text-align: left;
}

.carousel-item-text p:nth-of-type(4) {
    text-align: center;
}

.carousel-item-text a {
    text-decoration: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--color-secundario);
    border-bottom: 1px solid var(--color-secundario);
    color: #fff;
    /* OPTIMIZACIÓN: Transición en la propiedad 'background-color' */
    transition: background-color 0.1s ease;
    transition-delay: 0.1s;
}

.carousel-item-text a:hover {
    background-color: var(--color-secundario);
}

.carousel-image {
    flex: 0 0 50%;
    height: 100%;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 999px) {
    .promotions {
        height: auto;
        flex-direction: column;
    }

    .promotions-description {
        width: 100%;
        background: url(/imagenes/BuqueMercante2.webp);
        background-size: cover;
        background-position: center;
    }

    .promotions-text {
        text-align: center;
    }

    .promotions-text h1 {
        font-family: var(--fuente-secundaria);
        margin: 25px 0 15px;
    }

    .promotions-text p:nth-of-type(3),
    .promotions-text p:nth-of-type(4) {
        margin-left: 0;
    }

    .promotions-carousel {
        width: 100%;
        height: 90vh;
    }
}

@media (max-width: 845px) {
    .promotions-carousel {
        height: 100vh;
    }

    .carousel-item-text {
        height: 100%;
        flex-basis: 100%;
        text-align: center;
        position: relative;
        background: var(--color-opaco-principal);
        border-top: 1px solid var(--color-secundario);
        z-index: 1;
    }

    .carousel-item-text p {
        text-align: center;
    }

    .carousel-image {
        position: absolute;
    }
}

/* ==========================================================================
   8. UBICACIÓN / MAPA
   ========================================================================== */
.ubication {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding: 80px 60px 80px;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.ubication h1 {
    font-family: var(--fuente-secundaria);
    text-align: center;
    margin: 0 0 30px;
}

.ubication-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.ubication-content .ubication-image {
    position: relative;
    width: 600px;
    height: 450px;
    border-radius: 5px;
    overflow: hidden;
}

.ubication-content .ubication-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.ubication-content .ubication-image .sede {
    position: absolute;
    width: 155px;
    height: 150px;
    left: 20px;
    bottom: 10px;
    border-radius: 50%;
}

.ubication-content .ubication-image p {
    position: absolute;
    bottom: 10px;
    right: 20px;
    padding: 10px;
    border-radius: 3px;
    color: #fff;
    font-family: var(--fuente-secundaria);
    font-weight: 550;
    background: var(--color-opaco-principal);
}

@media (max-width: 1095px) {
    .ubication-content {
        flex-direction: column;
    }
}

@media (max-width: 685px) {
    .ubication-content {
        flex-direction: column;
    }

    iframe {
        width: 400px;
        height: 350px;
    }

    .ubication-content .ubication-image {
        position: relative;
        width: 420px;
        height: 280px;
    }

    .ubication-content .ubication-image .sede {
        width: 125px;
        height: 120px;
    }

    .ubication-content .ubication-image p {
        font-size: 0.7em;
    }
}

/* ==========================================================================
   9. PIE DE PÁGINA (FOOTER) Y BOTONES FLOTANTES
   ========================================================================== */
.footer {
    overflow: hidden;
    background: linear-gradient(0deg, var(--color-principal) 80%, #fff 20%);
    color: #fff;
    padding: 80px 60px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.footer-column h3 {
    font-family: var(--fuente-secundaria);
    color: var(--color-secundario-claro);
    font-size: 1.1em;
    margin: 0 0 20px;
    padding: 0 0 5px;
    font-weight: 550;
    position: relative;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--color-secundario-claro);
    bottom: 0;
    left: 0;
}

.footer-links,
.footer-info-list {
    list-style: none;
    padding-left: 0;
}

.footer-links li,
.footer-info-list li {
    margin-bottom: 13px;
}

.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    /* OPTIMIZACIÓN: Transición específica */
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secundario-claro);
}

.footer-text {
    color: #f1f1f1;
    text-decoration: none;
}

.footer-text .minedu,
.footer-text .dicapi {
    width: 200px;
}

.footer-brand .footer-logo {
    display: flex;
}

.footer-brand .footer-logo img {
    width: 150px !important;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1f2937;
    color: #9ca3af;
    /* OPTIMIZACIÓN: Transiciones acotadas a las propiedades hover */
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials:hover .social-icon {
    opacity: 0.5;
}

.footer-socials:hover .social-icon:hover {
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
    transform: translateY(-1.5px);
    opacity: 1;
}

.footer-bottom {
    width: 100%;
    margin: 45px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(153, 131, 99, 0.4);
    /* OPTIMIZACIÓN: Sintaxis rgba limpia */
    text-align: center;
    color: #f1f1f1;
    font-size: 0.85em;
}

.container-ocean {
    width: 100%;
    margin-bottom: -91px;
    overflow: hidden;
}

#oceanCanvas {
    width: 100.5% !important;
}

@media (max-width: 1035px) {
    .container-ocean {
        margin-bottom: -50px;
    }

    .footer {
        background: var(--color-principal);
        padding: 40px 60px 0;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 50px;
    }

    .footer-brand {
        grid-column: span 2;
        border-bottom: 1px solid rgba(153, 131, 99, 0.4);
        padding: 0 0 40px;
        margin: 0 0 25px;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 600px) {

    .container-ocean {
        margin-bottom: -25px;
    }

    .footer {
        padding: 40px 0 5px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand .footer-logo img {
        width: 200px !important;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
    }

    .footer-column {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(153, 131, 99, 0.11);
        text-align: center;
    }

    .footer-column h3 {
        padding: 0 0 10px;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-secundario-claro);
    }

    .footer-column:last-child {
        border-bottom: none;
        margin: 0 0 0;
    }

    .footer-bottom {
        margin: 0;
    }
}

/* Botón Flotante WhatsApp */
.whattsapp {
    text-decoration: none;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    position: fixed;
    display: grid;
    place-items: center;
    bottom: 15px;
    right: 15px;
    z-index: 3;
    /* OPTIMIZACIÓN: Transición específica */
    transition: all 0.25s ease !important;
}

.whattsapp svg {
    width: 35px;
    height: 35px;
}

.whattsapp:hover {
    background-color: #fff;
    color: #25d366;
}

@media (max-width: 500px) {
    .whattsapp {
        width: 50px;
        height: 50px;
    }

    .whattsapp svg {
        width: 25px;
        height: 25px;
    }
}

/* Botón 'Volver arriba' con anillo de progreso */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 23px;
    z-index: 2;
    background-color: var(--color-principal);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--color-secundario-claro) var(--progress, 0deg), var(--color-opaco-principal) 0deg);
    z-index: 1;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 3px));
}

.btn-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: var(--color-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    /* OPTIMIZACIÓN: Transición específica de propiedades de color */
    transition: background-color 0.8s ease, color 0.8s ease;
}

.btn-content svg {
    width: 20px;
    height: 20px;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



@media (max-width: 500px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

a,
a:focus,
a:active,
a:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Escena 3D Flotante */
.scene {
    position: fixed;
    bottom: 25px;
    left: 10px;
    width: 150px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    perspective-origin: center center;
    z-index: 3;
    /* Oculto por defecto con transición */
    opacity: 0 !important;
    transform: translateY(150px) !important;
    pointer-events: none !important;
    transition: transform 0.6s ease, opacity 0.6s ease !important;
}

.scene.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Transición suave para el botón de cierre */
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: transparent;
    color: var(--color-principal);
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    line-height: 1;
    background-color: var(--color-secundario-claro);
    /* Estado oculto por defecto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Transición especificando duraciones y delays por cada propiedad */
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    transition-delay: 0s, 0s, 0s;
    /* Sin delay por defecto */
}

/* APARECE LUEGO DE MOSTRAR LA ESCENA */
.scene.active .close-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    /* El delay de 0.6s se aplica ÚNICAMENTE a la opacidad y visibilidad, no al background */
    transition-delay: 0.8s, 0.8s, 0s;
}

/* OCULTAR EL BOTÓN AL HACER HOVER EN LA TARJETA */
.card:hover~.close-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition-delay: 0s !important;
}

/* HOVER INMEDIATO EN EL BOTÓN */
.close-btn:hover {
    background-color: var(--color-secundario) !important;
    transition-delay: 0s !important;
    /* Fuerza respuesta inmediata */
}

.card {
    background-color: transparent;
    /* Dimensiones del prisma */
    --width: 120px !important;
    --height: 83px !important;
    --depth: 25px;
    position: relative;
    width: var(--width);
    height: var(--height);
    transform-style: preserve-3d;
    transform:
        translateY(20px) rotateX(60deg) rotateY(0deg) rotateZ(42deg);
    transition:
        transform 0.8s cubic-bezier(.2, .8, .2, 1);
    cursor: pointer;
}

.card:hover {
    transform:
        translateY(-35px) translateZ(-200px) rotateX(0deg) rotateY(0deg) rotateZ(90deg) scale(2);
}

.face {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1px solid #0000001f;
    overflow: hidden;
}


.front {
    background: url(/imagenes/PROMOCIONAL/Front.jpg) center/cover no-repeat;
    width: var(--width);
    height: var(--height);
    margin-left: calc(var(--width) / -2);
    margin-top: calc(var(--height) / -2);
    /* Se estrecha 1px hacia adentro para sellar la tapa superior */
    transform: translateZ(calc(var(--depth) / 2 - 1px));
}

.back {
    width: var(--width);
    height: var(--height);
    margin-left: calc(var(--width) / -2);
    margin-top: calc(var(--height) / -2);
    transform: rotateY(180deg) translateZ(calc(var(--depth) / 2 - 1px));
}

.right {
    width: var(--depth);
    height: var(--height);
    margin-left: calc(var(--depth) / -2);
    margin-top: calc(var(--height) / -2);
    /* Ajuste en Z a -1.2px para apretar las caras laterales */
    transform: rotateY(90deg) translateZ(calc(var(--width) / 2 - 1.2px));
    background: url(/imagenes/PROMOCIONAL/Bottom.webp) center/cover no-repeat;
}

.left {
    width: var(--depth);
    height: var(--height);
    margin-left: calc(var(--depth) / -2);
    margin-top: calc(var(--height) / -2);
    transform: rotateY(-90deg) translateZ(calc(var(--width) / 2 - 1.2px));
}

.top {
    width: var(--width);
    height: var(--depth);
    margin-left: calc(var(--width) / -2);
    margin-top: calc(var(--depth) / -2);
    transform: rotateX(90deg) translateZ(calc(var(--height) / 2 - 1.2px));
}

.bottom {
    width: var(--width);
    height: var(--depth);
    margin-left: calc(var(--width) / -2);
    margin-top: calc(var(--depth) / -2);
    transform: rotateX(-90deg) translateZ(calc(var(--height) / 2 - 1.2px));
    background: url(/imagenes/PROMOCIONAL/Left.webp) center/cover no-repeat;
}

.scene::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 70px;
    background: #00000029;
    border-radius: 50%;
    filter: blur(25px);
    transform:
        translateY(160px) rotate(-8deg);
    transition:
        transform .8s cubic-bezier(.2, .8, .2, 1),
        opacity .8s ease;
    pointer-events: none;
}

.scene:hover::after {
    transform:
        translateY(190px) scale(.75);
    opacity: .08;
}

@media (max-width: 478px) {
    .scene {
        display: none;
    }
}

/*MARQUEEEEEEEEEEEEEEEEEE*/
.marquee {
    margin: 0 auto;
    width: 70%;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    user-select: none;
    position: relative;
    transform: translateY(50px);
}

.difuminado {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    90deg, 
    #fff 0%, 
    transparent 5%, 
    transparent 80%, 
    #fff 100%
);
}

.group {
    display: flex;
    align-items: center;
    gap: 1em;
    padding-right: 1em;
    flex-shrink: 0;
    min-width: max-content;
    animation: marquee 8s infinite linear;
}

.marquee-item {
    flex: 0 0 15em;
    height: 6em;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee .group .salesiano {
    background-color: #003052;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 895px) {
    .marquee {
        width: 100%;
    }
}
