/* =========================================================
   NOTAS DE PRENSA - CABECERA
========================================================= */

.ac-np__cabecera {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Bloque central de textos */
.ac-np__encabezado {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}

/* Etiqueta */
.ac-np__label {
    display: block;
    width: 100%;
    text-align: center;
    color: #15366B;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.4;
    margin-bottom: 22px;
    padding: 0;
}

/* Línea dorada debajo de la etiqueta */
.ac-np__label::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #F4B400;
    margin: 14px auto 0;
    border-radius: 2px;
}

/* Título */
.ac-np__titulo {
    color: #10284C;
    font-size: clamp(2rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    margin: 0 0 14px;
}

/* Texto destacado */
.ac-np__titulo span {
    color: #0875E1;
}

/* Descripción */
.ac-np__descripcion {
    color: #5C6B82;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Botón: arriba a la derecha, sin afectar el centrado */
.ac-np__acciones {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    padding: 0;
}

.ac-np__mostrar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    text-decoration: none;
}

/* Ajustes para móviles */
@media (max-width: 767.98px) {

    .ac-np__cabecera {
        margin-bottom: 30px;
    }

    .ac-np__label {
        font-size: 0.75rem;
        letter-spacing: 3px;
        margin-bottom: 18px;
    }

    .ac-np__titulo {
        font-size: clamp(1.65rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .ac-np__descripcion {
        font-size: 0.95rem;
    }

    .ac-np__acciones {
        position: static;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .ac-np__mostrar {
        white-space: normal;
    }
}

/* =========================================================
   AC-NP-CAROUSEL
   Carrusel exclusivo de Notas de Prensa
========================================================= */

.ac-np-carousel {
    --ac-npc-azul: #0875E1;
    --ac-npc-azul-oscuro: #10284C;
    --ac-npc-gris: #65738A;
    --ac-npc-espacio: 14px;

    position: relative;
    width: 100%;
    padding: 0 0 40px;
    min-width: 0;
}


/* =========================================================
   VENTANA Y PISTA
========================================================= */

.ac-np-carousel__ventana {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.ac-np-carousel__pista {
    display: flex;
    align-items: stretch;
    gap: var(--ac-npc-espacio);
    transform: translateX(0);
    transition: transform 0.55s ease;
    will-change: transform;
}

.ac-np-carousel__elemento {
    flex: 0 0 calc((100% - 3 * var(--ac-npc-espacio)) / 4);
    min-width: 0;
    display: flex;
    align-self: stretch;
}


/* =========================================================
   TARJETA
========================================================= */

.ac-np-carousel__tarjeta {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;

    background: #FFFFFF;
    border: 1px solid #E8EEF5;
    border-radius: 13px;

    box-shadow: 0 8px 25px rgba(16, 40, 76, 0.07);

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.ac-np-carousel__tarjeta:hover {
    box-shadow: 0 14px 32px rgba(16, 40, 76, 0.13);
}


/* =========================================================
   IMAGEN
========================================================= */

.ac-np-carousel__imagen-enlace {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EAF1F8;
}

.ac-np-carousel__imagen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.ac-np-carousel__tarjeta:hover
.ac-np-carousel__imagen {
    transform: scale(1.045);
}


/* =========================================================
   CUERPO
========================================================= */

.ac-np-carousel__cuerpo {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 21px;
    min-width: 0;
}


/* =========================================================
   FECHA
========================================================= */

.ac-np-carousel__fecha {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #FFFFFF;
    background: var(--ac-npc-azul);
    border-radius: 5px;

    padding: 7px 12px;
    margin-bottom: 14px;

    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1.2;
}

.ac-np-carousel__fecha .icon-calendar {
    font-size: 0.8rem;
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.ac-np-carousel__categoria {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    margin-bottom: 11px;

    border-radius: 10px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.ac-np-carousel__categoria--vial {
    color: #D93035;
    background: #FFF0F0;
}

.ac-np-carousel__categoria--transporte {
    color: #159765;
    background: #EAF8F1;
}

.ac-np-carousel__categoria--gestion {
    color: #C78A00;
    background: #FFF7E5;
}


/* =========================================================
   TÍTULO
========================================================= */

.ac-np-carousel__titulo {
    width: 100%;
    color: var(--ac-npc-azul-oscuro);

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;

    margin: 0 0 10px;
    padding: 0;
}

.ac-np-carousel__titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.ac-np-carousel__titulo a:hover {
    color: var(--ac-npc-azul);
}


/* =========================================================
   RESUMEN
========================================================= */

.ac-np-carousel__resumen {
    width: 100%;
    color: var(--ac-npc-gris);

    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;

    margin: 0 0 18px;
    padding: 0;
}


/* =========================================================
   LEER MÁS
========================================================= */

.ac-np-carousel__leer {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--ac-npc-azul);

    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;

    margin-top: auto;

    transition: color 0.25s ease;
}

.ac-np-carousel__leer:hover {
    color: #075DB5;
}

.ac-np-carousel__leer .icon-chevron-right {
    transition: transform 0.25s ease;
}

.ac-np-carousel__leer:hover .icon-chevron-right {
    transform: translateX(4px);
}


/* =========================================================
   FLECHAS LATERALES
========================================================= */

.ac-np-carousel__flecha {
    position: absolute;
    z-index: 5;
    top: 38%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    color: var(--ac-npc-azul);
    background: #FFFFFF;

    border: none;
    border-radius: 50%;

    box-shadow: 0 4px 16px rgba(16, 40, 76, 0.12);

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease;
}

.ac-np-carousel__flecha:hover {
    color: #FFFFFF;
    background: var(--ac-npc-azul);
}

.ac-np-carousel__flecha:focus-visible {
    outline: 3px solid #F4B400;
    outline-offset: 3px;
}

.ac-np-carousel__flecha span {
    font-size: 1.2rem;
    line-height: 1;
}

.ac-np-carousel__flecha--anterior {
    left: -23px;
}

.ac-np-carousel__flecha--siguiente {
    right: -23px;
}

.ac-np-carousel__flecha:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}


/* =========================================================
   INDICADORES
========================================================= */

.ac-np-carousel__indicadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin-top: 26px;
}

.ac-np-carousel__punto {
    display: block;

    width: 11px;
    height: 11px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: #C8CFDA;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.ac-np-carousel__punto--activo {
    background: var(--ac-npc-azul);
    transform: scale(1.08);
}

.ac-np-carousel__punto:focus-visible {
    outline: 2px solid var(--ac-npc-azul);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .ac-np-carousel {
        --ac-npc-espacio: 16px;
    }

    .ac-np-carousel__elemento {
        flex-basis: calc((100% - var(--ac-npc-espacio)) / 2);
    }

    .ac-np-carousel__cuerpo {
        padding: 17px;
    }

    .ac-np-carousel__titulo {
        font-size: 1.05rem;
    }

    .ac-np-carousel__flecha--anterior {
        left: -12px;
    }

    .ac-np-carousel__flecha--siguiente {
        right: -12px;
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 575.98px) {

    .ac-np-carousel {
        --ac-npc-espacio: 12px;
        padding-bottom: 30px;
    }

    .ac-np-carousel__elemento {
        flex-basis: 100%;
    }

    .ac-np-carousel__ventana {
        border-radius: 12px;
    }

    .ac-np-carousel__tarjeta {
        border-radius: 12px;
    }

    .ac-np-carousel__imagen-enlace {
        aspect-ratio: 16 / 9;
    }

    .ac-np-carousel__cuerpo {
        padding: 18px;
    }

    .ac-np-carousel__titulo {
        font-size: 1.1rem;
    }

    .ac-np-carousel__resumen {
        font-size: 0.92rem;
    }

    .ac-np-carousel__flecha {
        top: 29%;
        width: 38px;
        height: 38px;
    }

    .ac-np-carousel__flecha--anterior {
        left: -8px;
    }

    .ac-np-carousel__flecha--siguiente {
        right: -8px;
    }

    .ac-np-carousel__indicadores {
        margin-top: 22px;
    }
}


/* =========================================================
   RESPETO A REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ac-np-carousel__pista,
    .ac-np-carousel__imagen,
    .ac-np-carousel__tarjeta,
    .ac-np-carousel__flecha,
    .ac-np-carousel__punto {
        transition: none;
    }
}