#banner-nuevos-matriculados {
    position: relative;
}


#banner-nuevos-matriculados:hover {
    cursor: pointer !important;
}

#banner-nuevos-matriculados a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Asegura que esté por encima del iframe */
    background-color: rgba(0, 0, 0, 0); /* Transparente */
    display: block; /* Asegura que cubra toda el área */
    cursor: pointer; /* Cambia el cursor para indicar que es clicable */
}

#banner-nuevos-matriculados a:hover + iframe {
    transform: scale(1.03); /* Agranda el iframe un 5% */
    transition: transform 0.3s ease-in-out; /* Transición suave */
}


#banner {
    position: relative;
    border-radius: 26px !important;
    overflow: hidden;
    border: 0px solid #f3f3f3 !important;
    animation-duration: 1s; 
    transition: transform 0.5s ease;
    z-index: 0;
}

.tarjeta-nuevos-matriculados {
    position: relative;
    width: calc(100% -  18px);
    height: 181px;
    box-shadow: 0px 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: all ease-in-out 0.4s;
    background: #fff;
    text-align: left;
    padding: 12px;
    border-radius: 26px !important;
    background: rgba( 255, 255, 255, 0.25 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    border: 8px solid rgba( 255, 255, 255, 0.18 );
    transition: transform 0.3s ease-in-out; /* Transición suave */
    animation: scrollBackground 30s linear infinite !important; /* Animación lenta e infinita */
    z-index: 4;
}

@keyframes scrollBackground {
    0% {
        background-position: 0 -140px;
    }
    100% {
        background-position: 180% -140px;
    }
}

.tarjeta-nuevos-matriculados:hover {
    transform: scale(1.03); /* Agranda el iframe un 5% */
    transition: transform 0.3s ease-in-out; /* Transición suave */
    cursor: pointer;
}

.tarjeta-nuevos-matriculados .icon {
    float: left;
    margin-right: 20px;
}

.tarjeta-nuevos-matriculados .icon img {
    width: 190px;
}

.tarjeta-nuevos-matriculados .top {
    position: absolute;
    width: 380px;
    top: -8px; right: -8px;
    height: 180px;
    background: url(images/top-ces2024-collection.png) top right no-repeat;
    background-size: contain;
    border-radius: 26px !important;
}

@keyframes rotarHelice {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tarjeta-nuevos-matriculados .top .helice {
    position: absolute;
    height: 120px;
    width: 120px;
    right: 6px;
    top: -5px;
    background: url(images/helice.png) top right no-repeat;
    background-size: contain;
    animation: rotarHelice 10s linear infinite;
}


.tarjeta-nuevos-matriculados .description {
    display: block; /* Cambia a bloque para flexibilidad */
    width: 100%; /* Ajusta según sea necesario */
    text-align: left; /* Asegura el texto alineado a la izquierda */
    padding: 20px 8px 8px 8px; /* Opcional: añade margen interno */
    padding-left: 12px;
}


@media (max-width: 1198px) {
    .tarjeta-nuevos-matriculados .top .helice {
        height: 66px;
        width: 66px;
    }
}

/* Estilo específico para dispositivos móviles */
@media only screen and (max-width: 768px) {
    #banner-nuevos-matriculados {
        position: relative;
        width: 100%; /* Ancho al 100% */
        padding-bottom: calc(250 / 300 * 100%); /* Mantener el aspect ratio 300/250 */
        height: 0; /* Altura se controla por el padding */
    }

    .tarjeta-nuevos-matriculados {
        position: relative;
        width: 100%;
        height: 350px;
    }

    .tarjeta-nuevos-matriculados .top .helice {
        height: 96px;
        width: 96px;
        right: 5%;
        top: 3%;
    }

    .tarjeta-nuevos-matriculados .description {
        width: 100% !important; 
        padding: 10px !important;
    }

    .tarjeta-nuevos-matriculados .new {
        position: absolute;
        top: -10px !important;
        left: -6px !important;
        font-size: 16px;
    }

    .tarjeta-nuevos-matriculados .icon {
        float: left;
        margin-right: 20px;
        margin-top: 10px;
    }
    
    .tarjeta-nuevos-matriculados .icon img {
        width: 230px;
    }

    .listado-matriculados .tarjeta-descripcion {
        height: 130px !important;
    }
}

.tarjeta-nuevos-matriculados .new {
    position: absolute;
    top: -10px;
    left: -12px;
}

.tarjeta-nuevos-matriculados .body {
    margin-top: 20px;
}

.tarjeta-nuevos-matriculados .data {
    transition: all ease-in-out 0.4s;
    opacity: 0;
    position: relative;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px 30px;
}

.tarjeta-nuevos-matriculados  p {
    clear: both;
    line-height: 18px;
    font-size: 13px;
    margin-bottom: 0;
    color: rgb(46, 46, 46);
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

.tarjeta-nuevos-matriculados  h4 {
    font-weight: bold;
    color: #003A74;
    text-transform: uppercase;
    font-size: 20px !important;
    line-height: 24px !important;
}

.listado-matriculados .anio {
    padding: 6px 14px;
    border-radius: 12px;
    background-color: black;
    color: white;
    width: fit-content !important;
    font-weight: 700;
}

.listado-matriculados .icon {
    width: 160px;
    float: left;
    margin-right: 20px;
}

.listado-matriculados .icon img {
    width: 100%;
}

.tarjeta-nuevos-matriculados .tarjeta-descripcion {
  font-size: 14.5px;
  display: flex;              /* activa flexbox */
  align-items: center;        /* centra vertical */
  justify-content: left;    /* opcional: centra horizontal */
  text-align: left;         /* si querés que quede centrado el texto */
  flex-wrap: wrap;
  align-content: center;
}

.listado-matriculados .title {
    color: black;
    font-size: 30px;
    font-weight: 700;
    margin-top: 0px !important; 
    line-height: 32px;
    margin-bottom: 10px;
}

.listado-matriculados .title {
    font-weight: bold;
    color: #003A74 !important;
    text-transform: uppercase;
    font-size: 25px !important;
    line-height: 24px !important;
}

.mat-card {
    border-radius: 16px !important;
    background: white;
    border: 8px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 6px 6px 12px 0 rgb(0 0 0 / 15%);
}
  .mat-card .thumb-wrap{
            position:relative; width:100%;
            aspect-ratio:1/1;
            overflow:hidden;
            background:#f6f6f7;
            border-radius:.75rem;
            border:1px solid #ddd;   /* opcional, pero sin padding */
            padding:0;
            }

            .mat-card .thumb-wrap img{
            position:absolute; left:50%; top:50%;
            width:100%;              /* MISMO “modo base” que el editor */
            height:auto;
            transform:translate(-50%,-50%) scale(1);
            transform-origin:center center;
            will-change:transform;
            max-width:none;
            pointer-events:none;
            margin-top: -26px;
            }



            .mat-card .caption{ 
                width: 100%;
                margin-top: 12px;
                text-align: center;
                font-weight: 600;
                color: #00a44e;
                line-height: 15px;
            }
          .mat-card .caption .name{ font-size: 16px; font-weight: bold; line-height:1.15; margin-bottom:.15rem; }
          .mat-card .caption .meta{ font-size: 13px; color:black; }
          /* Hover sutil */
          .mat-card a.thumb{ display:block; border-radius:.75rem; }
          .mat-card a.thumb:hover img{ transform: translate(var(--tx,0),var(--ty,0)) scale(var(--tz,1)) translateZ(0) }

          .mat-card .caption .meta a {
            margin-top: 12px;
            padding: 6px 4px; border-radius: 8px;
            color: white;
            background-color: #00a44e;
            display: block;
          }


 @media (max-width: 767.98px) {
  .mat-card .thumb-wrap img {
    margin-top: -39px !important;
  }

   .mat-card .caption .meta a {
    margin-top: 12px;
    padding: 6px 4px; border-radius: 8px;
    color: white;
    background-color: #00a44e;
    display: block;
    height: 32px;
    font-size: 20px;
    }
}
