/* =====================================================
   RAS90 Elementor ACF Carousel - Frontend Styles
   ===================================================== */
.ras90-eac-carousel {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.ras90-eac-carousel *,
.ras90-eac-carousel *::before,
.ras90-eac-carousel *::after {
    box-sizing: border-box;
}

.ras90-eac-track {
    width: 100%;
}

.ras90-eac-slide {
    padding: 0 10px;
    outline: none;
    height: auto;
}

.ras90-eac-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card layout variations */
.ras90-eac-image_top .ras90-eac-image { order: 1; }
.ras90-eac-image_top .ras90-eac-content { order: 2; }

.ras90-eac-image_bottom .ras90-eac-image { order: 2; }
.ras90-eac-image_bottom .ras90-eac-content { order: 1; }

.ras90-eac-image_left .ras90-eac-card-row,
.ras90-eac-image_right .ras90-eac-card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}
.ras90-eac-image_right .ras90-eac-card-row.ras90-eac-card-row-reverse {
    flex-direction: row-reverse;
}
.ras90-eac-image_left .ras90-eac-image,
.ras90-eac-image_right .ras90-eac-image {
    flex: 0 0 50%;
    max-width: 50%;
}
.ras90-eac-image_left .ras90-eac-content,
.ras90-eac-image_right .ras90-eac-content {
    flex: 1 1 auto;
}

.ras90-eac-image_bg {
    position: relative;
    color: #fff;
}
.ras90-eac-image_bg .ras90-eac-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ras90-eac-image_bg .ras90-eac-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
}
.ras90-eac-image_bg .ras90-eac-bg-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}
.ras90-eac-image_bg .ras90-eac-title,
.ras90-eac-image_bg .ras90-eac-title a,
.ras90-eac-image_bg .ras90-eac-excerpt,
.ras90-eac-image_bg .ras90-eac-meta,
.ras90-eac-image_bg .ras90-eac-cf,
.ras90-eac-image_bg .ras90-eac-cf-label,
.ras90-eac-image_bg .ras90-eac-cf-value {
    color: #fff;
}

/* Image */
.ras90-eac-image {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.ras90-eac-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}
.ras90-eac-card:hover .ras90-eac-image img {
    transform: scale(1.05);
}

/* Content */
.ras90-eac-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Meta */
.ras90-eac-meta {
    font-size: 12px;
    opacity: .8;
    margin-bottom: 8px;
    line-height: 1.4;
}
.ras90-eac-meta-sep {
    margin: 0 4px;
    opacity: .6;
}

/* Title */
.ras90-eac-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}
.ras90-eac-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}
.ras90-eac-title a:hover {
    opacity: .8;
}

/* Excerpt */
.ras90-eac-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
    word-wrap: break-word;
}

/* Custom fields */
.ras90-eac-cf-wrap {
    margin-bottom: 12px;
}
.ras90-eac-cf {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
    word-wrap: break-word;
}
.ras90-eac-cf-label {
    font-weight: 600;
    margin-right: 4px;
}
.ras90-eac-cf-value a {
    color: inherit;
    text-decoration: underline;
}

/* Button */
.ras90-eac-button {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all .25s ease;
    margin-top: auto;
    cursor: pointer;
    line-height: 1.2;
}
.ras90-eac-button:hover {
    background: #005177;
}
.ras90-eac-button-disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Arrows (aplica tanto al carrusel ACF/CPT como al carrusel de videos) */
.ras90-eac-carousel .slick-prev,
.ras90-eac-carousel .slick-next,
.ras90-eac-vc .slick-prev,
.ras90-eac-vc .slick-next {
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    transition: all .25s ease;
    color: #fff;
    font-size: 16px;
}
.ras90-eac-carousel .slick-prev:hover,
.ras90-eac-carousel .slick-next:hover,
.ras90-eac-vc .slick-prev:hover,
.ras90-eac-vc .slick-next:hover {
    background: rgba(0,0,0,.85);
}
.ras90-eac-carousel .slick-prev::before,
.ras90-eac-carousel .slick-next::before,
.ras90-eac-vc .slick-prev::before,
.ras90-eac-vc .slick-next::before {
    content: none !important;
    display: none !important;
}
.ras90-eac-carousel .slick-arrow,
.ras90-eac-vc .slick-arrow {
    line-height: 0;
}
.ras90-eac-carousel .slick-arrow i,
.ras90-eac-carousel .slick-arrow svg,
.ras90-eac-vc .slick-arrow i,
.ras90-eac-vc .slick-arrow svg {
    pointer-events: none;
}

/* Dots (aplica tanto al carrusel ACF/CPT como al carrusel de videos) */
.ras90-eac-carousel .slick-dots,
.ras90-eac-vc .slick-dots {
    bottom: -35px;
}
.ras90-eac-carousel .slick-dots li,
.ras90-eac-vc .slick-dots li {
    margin: 0 5px;
}
.ras90-eac-carousel .slick-dots li button,
.ras90-eac-vc .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: #ccc;
    border: none;
    transition: all .25s ease;
}
.ras90-eac-carousel .slick-dots li button::before,
.ras90-eac-vc .slick-dots li button::before {
    content: none !important;
    display: none !important;
}
.ras90-eac-carousel .slick-dots li.slick-active button,
.ras90-eac-vc .slick-dots li.slick-active button {
    background: #0073aa;
    transform: scale(1.2);
}

/* Empty state */
.ras90-eac-empty {
    padding: 30px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Single Page Content mode */
.ras90-eac-mode-single-content .ras90-eac-slide {
    height: auto;
}
.ras90-eac-single-content {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fff;
}
.ras90-eac-single-content .elementor,
.ras90-eac-single-content .elementor-section,
.ras90-eac-single-content .elementor-widget {
    margin: 0;
}
.ras90-eac-single-content > .elementor {
    max-width: 100%;
}

/* =====================================================
   RAS90 Video Carousel
   ===================================================== */
.ras90-eac-vc {
    position: relative;
    width: 100%;
}
.ras90-eac-vc-track {
    width: 100%;
}
.ras90-eac-vc-slide {
    padding: 0 10px;
    outline: none;
    height: auto;
}
.ras90-eac-vc-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}
.ras90-eac-vc-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #111 center/cover no-repeat;
    cursor: pointer;
    transition: opacity .25s ease, transform .3s ease;
}
.ras90-eac-vc-thumb:hover {
    opacity: .9;
}
.ras90-eac-vc-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
    transition: background .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ras90-eac-vc-card:hover .ras90-eac-vc-thumb-overlay {
    background: rgba(0,0,0,.4);
}
.ras90-eac-vc-play {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 22px;
    transition: transform .25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    line-height: 0;
}
.ras90-eac-vc-card:hover .ras90-eac-vc-play {
    transform: scale(1.1);
}
.ras90-eac-vc-play i,
.ras90-eac-vc-play svg {
    margin-left: 3px;
    line-height: 1;
}
.ras90-eac-vc-play .ras90-eac-arrow-icon {
    line-height: 1;
}
.ras90-eac-vc-title-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
}
.ras90-eac-vc-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #fff;
}
.ras90-eac-vc-subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,.9);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ras90-eac-vc-subtitle .ras90-eac-vc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    line-height: 1;
}
.ras90-eac-vc-subtitle .ras90-eac-vc-icon i,
.ras90-eac-vc-subtitle .ras90-eac-vc-icon svg {
    display: block;
}

/* Lightbox */
.ras90-eac-vc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    animation: ras90EacFadeIn .25s ease forwards;
}
.ras90-eac-vc-lightbox.is-open {
    display: flex;
}
.ras90-eac-vc-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.ras90-eac-vc-lightbox-inner iframe,
.ras90-eac-vc-lightbox-inner video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.ras90-eac-vc-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.ras90-eac-vc-lightbox-close:hover {
    background: rgba(255,255,255,.3);
}
@keyframes ras90EacFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive video carousel */
@media (max-width: 767px) {
    .ras90-eac-vc-slide { padding: 0 5px; }
    .ras90-eac-vc-title { font-size: 16px; }
    .ras90-eac-vc-subtitle { font-size: 13px; }
}

/* =====================================================
   RAS90 Post List
   ===================================================== */
.ras90-pl {
    width: 100%;
    box-sizing: border-box;
}
.ras90-pl *,
.ras90-pl *::before,
.ras90-pl *::after {
    box-sizing: border-box;
}
.ras90-pl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ras90-pl-cols-1 .ras90-pl-item { flex: 1 1 100%; }
.ras90-pl-cols-2 .ras90-pl-item { flex: 1 1 calc(50% - 10px); }
.ras90-pl-cols-3 .ras90-pl-item { flex: 1 1 calc(33.3333% - 14px); }
.ras90-pl-cols-4 .ras90-pl-item { flex: 1 1 calc(25% - 15px); }
@media (max-width: 1024px) {
    .ras90-pl-cols-3 .ras90-pl-item,
    .ras90-pl-cols-4 .ras90-pl-item { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 640px) {
    .ras90-pl-cols-2 .ras90-pl-item,
    .ras90-pl-cols-3 .ras90-pl-item,
    .ras90-pl-cols-4 .ras90-pl-item { flex: 1 1 100%; }
}

.ras90-pl-item {
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Card layout variations */
.ras90-pl-style-image_top .ras90-pl-image    { order: 0; }
.ras90-pl-style-image_left .ras90-pl-row,
.ras90-pl-style-image_right .ras90-pl-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}
/* Solo se invierte en escritorio (por encima del breakpoint "tablet" de
   Elementor, 1024px). Sin este min-width, esta regla de 3 clases ganaba por
   especificidad al reseteo de abajo, dejando la tarjeta "Imagen a la derecha"
   en row-reverse aunque debía apilarse en columna en tablet/móvil. */
@media (min-width: 1025px) {
    .ras90-pl-style-image_right .ras90-pl-row.ras90-pl-row-reverse {
        flex-direction: row-reverse;
    }
}
.ras90-pl-style-image_left .ras90-pl-image,
.ras90-pl-style-image_right .ras90-pl-image { flex: 0 0 45%; max-width: 45%; }
.ras90-pl-style-image_left .ras90-pl-content,
.ras90-pl-style-image_right .ras90-pl-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
/* Antes este reseteo solo cubría hasta 767px (móvil), dejando un hueco en el
   rango de tablet (768-1024) donde la fila seguía sin apilarse porque ninguna
   regla lo forzaba a columna ahí. Se amplía a 1024px para que "Estilo de
   tarjeta" (Contenido) sea la única fuente de verdad en todos los tamaños:
   fila (con o sin reversa) desde 1025px en adelante, columna por debajo. */
@media (max-width: 1024px) {
    .ras90-pl-style-image_left .ras90-pl-row,
    .ras90-pl-style-image_right .ras90-pl-row {
        flex-direction: column;
    }
    .ras90-pl-style-image_left .ras90-pl-image,
    .ras90-pl-style-image_right .ras90-pl-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
}
.ras90-pl-style-image_bg { position: relative; color: #fff; min-height: 280px; }
.ras90-pl-style-image_bg .ras90-pl-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.ras90-pl-style-image_bg .ras90-pl-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
}
.ras90-pl-style-image_bg .ras90-pl-bg-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.ras90-pl-style-image_bg .ras90-pl-title,
.ras90-pl-style-image_bg .ras90-pl-title a,
.ras90-pl-style-image_bg .ras90-pl-excerpt,
.ras90-pl-style-image_bg .ras90-pl-meta,
.ras90-pl-style-image_bg .ras90-pl-acf,
.ras90-pl-style-image_bg .ras90-pl-acf-label,
.ras90-pl-style-image_bg .ras90-pl-acf-value,
.ras90-pl-style-image_bg .ras90-pl-button { color: #fff; }
.ras90-pl-style-image_bg .ras90-pl-button { border-color: rgba(255,255,255,.6); }

.ras90-pl-image {
    overflow: hidden;
    width: 100%;
}
/* Sin una altura contra la que recortar, object-fit no tiene ningún efecto visible
   (la imagen ya cabe exacto porque su caja mide lo mismo que su alto natural).
   Se fija una altura por defecto en los estilos que no heredan altura de una fila
   flex (arriba / solo texto); en "izquierda/derecha" la imagen ya se estira para
   igualar la columna de contenido gracias a align-items:stretch en .ras90-pl-row. */
.ras90-pl-style-image_top .ras90-pl-image,
.ras90-pl-style-simple .ras90-pl-image {
    height: 220px;
}
.ras90-pl-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}
.ras90-pl-item:hover .ras90-pl-image img { transform: scale(1.04); }

.ras90-pl-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}
.ras90-pl-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.ras90-pl-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}
.ras90-pl-meta,
.ras90-pl-acf {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    opacity: .85;
    word-wrap: break-word;
}
.ras90-pl-meta a,
.ras90-pl-acf a {
    color: inherit;
    transition: color .2s ease;
}
.ras90-pl-acf-label { font-weight: 600; margin-right: 4px; }
.ras90-pl-meta-affix { margin: 0 3px; }
.ras90-pl-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}
.ras90-pl-button {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s ease;
    margin-top: 8px;
    border: 1px solid transparent;
}
.ras90-pl-button:hover { background: #005177; }

/* Pagination */
.ras90-pl-pagination {
    margin-top: 30px;
    text-align: center;
}
.ras90-pl-pag-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ras90-pl-pag-list li {
    display: inline-flex;
    margin: 0 3px;
}
.ras90-pl-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    transition: all .2s ease;
}
.ras90-pl-pagination a.page-numbers:hover {
    background: #eee;
}
.ras90-pl-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}
.ras90-pl-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}
.ras90-pl-pag-finished {
    display: inline-block;
    margin-left: 12px;
    color: #888;
    font-style: italic;
}
.ras90-pl-load-more {
    cursor: pointer;
    padding: 10px 22px;
    background: #0073aa;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.ras90-pl-load-more:hover { background: #005177; }
.ras90-pl-load-more[disabled] { opacity: .6; cursor: progress; }
.ras90-pl-infinite-sentinel { height: 1px; }

.ras90-pl-empty {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    color: #666;
    font-style: italic;
    border-radius: 4px;
}

/* Variable width support */
.ras90-eac-carousel.slick-variable-width .ras90-eac-slide {
    width: auto;
}

/* Center mode */
.ras90-eac-carousel.slick-center .ras90-eac-card {
    transform: scale(1.05);
    transition: transform .3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .ras90-eac-title { font-size: 16px; }
    .ras90-eac-excerpt { font-size: 13px; }
}
@media (max-width: 767px) {
    .ras90-eac-slide { padding: 0 5px; }
    .ras90-eac-image_left .ras90-eac-card-row,
    .ras90-eac-image_right .ras90-eac-card-row {
        flex-direction: column;
    }
    .ras90-eac-image_left .ras90-eac-image,
    .ras90-eac-image_right .ras90-eac-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .ras90-eac-carousel .slick-prev,
    .ras90-eac-carousel .slick-next,
    .ras90-eac-vc .slick-prev,
    .ras90-eac-vc .slick-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
