/* Sección 2026 para comparar una portada editorial de novedades con accesos a trámites. */
.novedades-tramites-2026 {
    background: linear-gradient(180deg, #ffffff 0%, rgba(232, 245, 241, 0.58) 100%);
    padding: 30px 0 22px;
}

.novedades-tramites-2026 .container {
    max-width: 1600px;
}

.novedades-tramites-2026__layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(330px, 0.7fr) minmax(0, 1.86fr);
}

.novedades-tramites-2026__news,
.accesos-destacados-2026 {
    border-radius: 10px;
    overflow: hidden;
}

.accesos-destacados-2026 {
    box-shadow: 0 18px 44px rgba(20, 72, 74, 0.08);
}

.novedades-tramites-2026__news {
    background:
        radial-gradient(circle at 92% 8%, rgba(192, 226, 202, 0.4), transparent 25%),
        rgba(232, 245, 241, 0.78);
    padding: 24px;
}

.novedades-tramites-2026__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.novedades-tramites-2026__header h2 {
    color: var(--cipba-petroleo, #14484a);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.01em;
    margin: 0;
    text-transform: uppercase;
}

.novedades-tramites-2026__header a {
    align-items: center;
    color: var(--cipba-verde, #00a48a);
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 6px;
    text-decoration: none;
}

.novedades-tramites-2026__header a:hover {
    color: var(--cipba-petroleo, #14484a);
    text-decoration: none;
}

.novedades-tramites-2026__header--dark h2,
.novedades-tramites-2026__header--dark a:hover {
    color: var(--cipba-blanco, #ffffff);
}

.novedades-tramites-2026__header--dark h2 {
    font-size: 22px;
    white-space: nowrap;
}

.novedades-tramites-2026__news-grid {
    --novedad-side-card-height: 168px;
    --novedad-side-gap: 20px;
    --novedad-featured-width: calc(((var(--novedad-side-card-height) * 3) + (var(--novedad-side-gap) * 2)) * 0.8);
    align-items: start;
    display: grid;
    gap: var(--novedad-side-gap);
    grid-template-columns: var(--novedad-featured-width) minmax(0, 1fr);
}

.novedad-2026 {
    background: var(--cipba-blanco, #ffffff);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.novedad-2026:hover {
    border-color: #8fd0c3;
    box-shadow: 0 10px 24px rgba(0, 164, 138, 0.12);
}

.novedades-tramites-2026__featured-slider {
    aspect-ratio: 1080 / 1350;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.novedad-2026__image,
.novedad-2026__thumb {
    background-color: var(--cipba-menta, #c0e2ca);
    background-position: center;
    background-size: cover;
}

.novedad-2026__image {
    aspect-ratio: 1080 / 1350;
}

.novedad-2026--featured {
    bottom: 0;
    height: 100%;
    left: 0;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.36s ease, visibility 0.36s ease;
    visibility: hidden;
    width: 100%;
}

.novedad-2026--featured.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.novedad-2026--featured .novedad-2026__image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 8px;
    filter: blur(0);
    height: 100%;
    overflow: hidden;
    transition: filter 0.32s ease, transform 0.32s ease;
    width: 100%;
}

.novedad-2026--featured::before {
    background: rgba(0, 164, 138, 0);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.32s ease;
    z-index: 1;
}

.novedad-2026--featured:hover .novedad-2026__image,
.novedad-2026--featured:focus-within .novedad-2026__image {
    filter: blur(3px);
    transform: scale(1.01);
}

.novedad-2026--featured:hover::before,
.novedad-2026--featured:focus-within::before {
    background: rgba(0, 164, 138, 0.18);
}

.novedad-2026--featured .novedad-2026__body {
    background: var(--cipba-blanco, #ffffff);
    border-radius: 10px 10px 0 0;
    bottom: 0;
    box-shadow: 0 -12px 28px rgba(20, 72, 74, 0.12);
    display: flex;
    flex-direction: column;
    left: 0;
    max-height: calc(100% - 34px);
    min-width: 0;
    overflow: visible;
    padding: 20px 22px 58px;
    position: absolute;
    right: 0;
    transform: translateY(calc(100% + 2px));
    transition: transform 0.28s ease;
    z-index: 2;
}

.novedad-2026--featured:hover .novedad-2026__body,
.novedad-2026--featured:focus-within .novedad-2026__body {
    transform: translateY(0);
}

.novedad-2026__body {
    min-width: 0;
    padding: 18px;
}

.novedad-2026__meta {
    align-items: center;
    display: flex;
    margin-bottom: 14px;
}

.novedad-2026__meta time {
    background: #00b894;
    border-radius: 999px;
    color: var(--cipba-blanco, #ffffff);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 8px 13px;
    text-transform: uppercase;
    white-space: nowrap;
}

.novedad-2026 h3 {
    color: var(--cipba-petroleo, #14484a);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px;
}

.novedad-2026 p {
    margin: 0 0 14px;
}

.novedad-2026--featured h3 {
    font-size: 18px;
    line-height: 1.12;
}

.novedad-2026--featured p {
    font-size: 15px;
}

.novedad-2026--featured a {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--cipba-blanco, #ffffff) 22%);
    bottom: 10px;
    left: auto;
    margin-top: 0;
    padding: 6px 8px 6px 22px;
    position: absolute;
    right: 10px;
    z-index: 3;
}

.novedades-tramites-2026__slider-dots {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 10px 24px rgba(20, 72, 74, 0.14);
    display: inline-flex;
    gap: 8px;
    left: 50%;
    opacity: 1;
    padding: 9px 13px;
    position: absolute;
    transform: translateX(-50%);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    z-index: 4;
}

.novedades-tramites-2026__slider-dots button {
    background: rgba(96, 122, 124, 0.32);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 9px;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
    width: 9px;
}

.novedad-2026--featured.is-active:hover ~ .novedades-tramites-2026__slider-dots,
.novedad-2026--featured.is-active:focus-within ~ .novedades-tramites-2026__slider-dots {
    background: #8fd0c3;
}

.novedad-2026--featured.is-active:hover ~ .novedades-tramites-2026__slider-dots button,
.novedad-2026--featured.is-active:focus-within ~ .novedades-tramites-2026__slider-dots button {
    background: var(--cipba-blanco, #ffffff);
}

.novedad-2026--featured.is-active:hover ~ .novedades-tramites-2026__slider-dots button.is-active,
.novedad-2026--featured.is-active:focus-within ~ .novedades-tramites-2026__slider-dots button.is-active {
    background: var(--cipba-verde, #00a48a);
}

.novedades-tramites-2026__slider-dots button:hover,
.novedades-tramites-2026__slider-dots button:focus {
    background: rgba(96, 122, 124, 0.48);
    outline: none;
}

.novedades-tramites-2026__slider-dots button.is-active {
    background: var(--cipba-verde, #00a48a);
    outline: none;
    transform: scale(1.08);
    width: 22px;
}

.novedad-2026--featured.is-active:hover ~ .novedades-tramites-2026__slider-dots button.is-active,
.novedad-2026--featured.is-active:focus-within ~ .novedades-tramites-2026__slider-dots button.is-active {
    background: var(--cipba-verde, #00a48a);
}

.novedad-2026 a {
    align-items: center;
    color: var(--cipba-verde, #00a48a);
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 6px;
    text-decoration: none;
}

.novedad-2026 a:hover {
    color: var(--cipba-petroleo, #14484a);
    text-decoration: none;
}

.novedades-tramites-2026__side-list {
    display: grid;
    gap: var(--novedad-side-gap);
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.novedad-2026--small {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    height: var(--novedad-side-card-height);
    padding: 14px;
    position: relative;
}

.novedad-2026__thumb {
    aspect-ratio: 1080 / 1350;
    align-self: stretch;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 7px;
    height: 100%;
    overflow: hidden;
    width: auto;
}

.novedad-2026--small .novedad-2026__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
    padding: 0 4px 34px 0;
}

.novedad-2026--small h3 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 9px;
    max-width: 100%;
    overflow-wrap: normal;
}

.novedad-2026--small .novedad-2026__meta {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
}

.novedad-2026--small .novedad-2026__meta time,
.novedad-2026--small a {
    font-size: 13px;
}

.novedad-2026--small .novedad-2026__meta time {
    padding: 7px 12px;
}

.novedad-2026--small a {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--cipba-blanco, #ffffff) 22%);
    bottom: 10px;
    left: auto;
    padding: 6px 8px 6px 22px;
    position: absolute;
    right: 10px;
    z-index: 2;
}

.accesos-destacados-2026 {
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 86% 8%, rgba(0, 164, 138, 0.16), transparent 24%),
        linear-gradient(180deg, #004d4d 0%, var(--cipba-petroleo, #14484a) 100%);
    background-size: 64px 64px, 64px 64px, auto, auto;
    padding: 24px;
}

.accesos-destacados-2026__list {
    display: grid;
    gap: 12px;
}

.acceso-destacado-2026 {
    align-items: center;
    background: var(--cipba-blanco, #ffffff);
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 0 9px 18px rgba(20, 72, 74, 0.18);
    color: var(--cipba-petroleo, #14484a);
    display: grid;
    gap: 18px;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    min-height: 92px;
    overflow: hidden;
    padding: 16px 18px;
    position: relative;
    text-decoration: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.acceso-destacado-2026::before {
    background: linear-gradient(90deg, var(--cipba-verde, #00a48a) 0%, var(--cipba-verde, #00a48a) 78%, rgba(0, 164, 138, 0.64) 91%, rgba(0, 164, 138, 0) 100%);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.34s ease;
    width: 130%;
    z-index: 0;
}

.acceso-destacado-2026 > * {
    position: relative;
    transition: color 0.24s ease, filter 0.24s ease;
    z-index: 1;
}

.acceso-destacado-2026:hover,
.acceso-destacado-2026:focus {
    border-color: transparent;
    color: var(--cipba-blanco, #ffffff);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 164, 138, 0.14);
}

.acceso-destacado-2026:hover::before,
.acceso-destacado-2026:focus::before {
    transform: translateX(0);
}

.acceso-destacado-2026__icon {
    align-items: center;
    color: var(--cipba-petroleo, #14484a);
    display: flex;
    justify-content: center;
}

.acceso-destacado-2026__icon i {
    color: var(--cipba-petroleo, #14484a);
    font-size: 48px;
    transition: color 0.24s ease;
}

.acceso-destacado-2026__icon img {
    display: block;
    filter: brightness(0) saturate(100%) invert(21%) sepia(21%) saturate(1088%) hue-rotate(134deg) brightness(86%) contrast(91%);
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
    transition: filter 0.24s ease;
}

.acceso-destacado-2026 > i:last-child {
    color: var(--cipba-gris, #607a7c);
    font-size: 26px;
    transition: color 0.24s ease;
}

.acceso-destacado-2026 small {
    background: #fff000;
    border-radius: 999px;
    color: #121212;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    padding: 5px 8px;
    text-transform: uppercase;
}

.acceso-destacado-2026 strong {
    display: block;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.25;
    transition: color 0.24s ease;
}

.acceso-destacado-2026 em {
    color: var(--cipba-gris, #607a7c);
    display: block;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 4px;
    transition: color 0.24s ease;
}

.acceso-destacado-2026:hover .acceso-destacado-2026__icon,
.acceso-destacado-2026:focus .acceso-destacado-2026__icon,
.acceso-destacado-2026:hover .acceso-destacado-2026__icon i,
.acceso-destacado-2026:focus .acceso-destacado-2026__icon i,
.acceso-destacado-2026:hover > i:last-child,
.acceso-destacado-2026:focus > i:last-child,
.acceso-destacado-2026:hover strong,
.acceso-destacado-2026:focus strong,
.acceso-destacado-2026:hover em,
.acceso-destacado-2026:focus em {
    color: var(--cipba-blanco, #ffffff);
}

.acceso-destacado-2026:hover .acceso-destacado-2026__icon img,
.acceso-destacado-2026:focus .acceso-destacado-2026__icon img {
    filter: brightness(0) invert(1);
}

/* En escritorio, los trámites van a la izquierda y las novedades a la derecha. */
@media (min-width: 1200px) {
    /* Cedemos a trámites el 10% de las tarjetas, descontando el panel grande (435.2px), el relleno y los espacios. */
    .novedades-tramites-2026__layout {
        --tramites-ancho-base: max(330px, calc((100% - 24px) * 0.2734375));
        --ancho-cedido: calc((100% - 24px - var(--tramites-ancho-base) - 48px - 435.2px - 20px) * 0.1);
        grid-template-columns: calc(var(--tramites-ancho-base) + var(--ancho-cedido)) minmax(0, 1fr);
    }

    .novedades-tramites-2026__layout > .accesos-destacados-2026 {
        order: -1;
    }

    /* Las tres tarjetas quedan en el centro y el panel grande conserva su ancho a la derecha. */
    .novedades-tramites-2026__news-grid {
        grid-template-columns: minmax(0, 1fr) var(--novedad-featured-width);
    }

    .novedades-tramites-2026__side-list {
        order: -1;
    }
}

@media (max-width: 1199px) {
    .novedades-tramites-2026__layout {
        grid-template-columns: 1fr;
    }

    .novedades-tramites-2026__news-grid {
        --novedad-side-card-height: 154px;
        --novedad-side-gap: 18px;
        grid-template-columns: var(--novedad-featured-width) minmax(0, 1fr);
    }

    .novedades-tramites-2026__side-list {
        grid-template-columns: 1fr;
    }

    .novedad-2026--small {
        grid-template-columns: auto minmax(0, 1fr);
        height: var(--novedad-side-card-height);
        padding: 12px;
    }

    .novedad-2026--small a {
        right: 12px;
    }

    .novedad-2026--small .novedad-2026__body {
        padding: 0 2px 34px;
    }
}

@media (max-width: 575px) {
    .novedades-tramites-2026__news,
    .accesos-destacados-2026 {
        padding: 18px;
    }

    .novedades-tramites-2026__header {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .novedades-tramites-2026__header h2 {
        font-size: 23px;
    }

    .novedades-tramites-2026__news-grid {
        --novedad-side-card-height: 148px;
        --novedad-side-gap: 16px;
        grid-template-columns: 1fr;
    }

    .novedad-2026--featured {
        display: block;
    }

    .novedad-2026--featured .novedad-2026__body {
        max-height: 70%;
        padding: 18px 18px 58px;
        transform: translateY(0);
    }

    .novedad-2026--featured h3 {
        font-size: 18px;
    }

    .novedad-2026--small {
        grid-template-columns: auto minmax(0, 1fr);
        height: var(--novedad-side-card-height);
        padding: 10px;
    }

    .novedad-2026--small a {
        right: 10px;
    }

    .novedad-2026--small .novedad-2026__body {
        padding: 0 2px 34px 0;
    }

    .acceso-destacado-2026 {
        grid-template-columns: 44px 1fr 18px;
        padding: 12px;
    }
}

/* Las flechas quedan a mitad de cada borde; el recorte de la imagen sigue en el art?culo. */
.novedades-tramites-2026__featured-slider {
    overflow: visible;
}
.novedades-tramites-2026__slider-arrow {
    align-items: center;
    background: var(--cipba-blanco, #ffffff);
    border: 1px solid rgba(0, 164, 138, 0.22);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(20, 72, 74, 0.18);
    color: var(--cipba-verde, #00a48a);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    width: 44px;
    z-index: 5;
}
.novedades-tramites-2026__slider-arrow--prev { left: 0; }
.novedades-tramites-2026__slider-arrow--next { left: 100%; }
.novedades-tramites-2026__slider-arrow span {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    height: 10px;
    transform: translateX(-2px) rotate(45deg);
    width: 10px;
}
.novedades-tramites-2026__slider-arrow--prev span {
    transform: translateX(2px) rotate(-135deg);
}
.novedades-tramites-2026__slider-arrow:hover {
    background: var(--cipba-verde, #00a48a);
    color: var(--cipba-blanco, #ffffff);
    box-shadow: 0 6px 18px rgba(20, 72, 74, 0.24);
}
.novedades-tramites-2026__slider-arrow:focus-visible {
    outline: 2px solid var(--cipba-petroleo, #14484a);
    outline-offset: 3px;
}
@media (max-width: 991px) {
    .novedades-tramites-2026__slider-arrow {
        height: 36px;
        width: 36px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .novedades-tramites-2026__slider-arrow { transition: none; }
}
