/**
 * Aprending Cotizador — estilos de los shortcodes.
 *
 * Todo va bajo `.aprending-*` para no chocar con el tema. Los colores salen de
 * variables, así que se pueden redefinir desde el tema sin tocar este fichero.
 */

.aprending-card,
.aprending-quote,
.aprending-full,
.aprending-gallery,
.aprending-reviews,
.aprending-offers {
    --aprending-green: #27ae60;
    --aprending-green-dark: #1e9453;
    --aprending-text: #2c3e50;
    --aprending-muted: #7f8c8d;
    --aprending-border: #e0e4ea;
    --aprending-bg-soft: #f8f9fa;
    --aprending-radius: 8px;
    /* Radio mayor para las fotos: en superficies grandes 8px casi no se nota */
    --aprending-radius-lg: 14px;
}

/* ── Ficha ─────────────────────────────────────────────────────────────── */

.aprending-card {
    display: flex;
    gap: 24px;
    align-items: center;
    border: 2px solid var(--aprending-border);
    border-radius: var(--aprending-radius);
    padding: 22px 26px;
    margin: 24px 0;
    background: #fff;
    box-sizing: border-box;
}

.aprending-card__body {
    flex: 1 1 55%;
    min-width: 0;
}

.aprending-card__media {
    flex: 0 1 42%;
    max-width: 42%;
}

.aprending-card--no-image .aprending-card__body {
    flex-basis: 100%;
}

.aprending-card__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.aprending-card__title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--aprending-green);
}

.aprending-card__num {
    color: var(--aprending-text);
}

.aprending-card__facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aprending-card__facts li {
    margin: 0 0 7px;
    padding: 0;
    font-size: 17px;
    line-height: 1.45;
    color: var(--aprending-text);
}

.aprending-card__facts li::before {
    content: none; /* algunos temas añaden viñetas a los li */
}

.aprending-card__facts strong {
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-ico {
    margin-right: 4px;
}

.aprending-val {
    color: var(--aprending-muted);
    font-weight: 400;
}

.aprending-val a {
    color: var(--aprending-muted);
    text-decoration: underline;
}

.aprending-card__reviews {
    font-size: 14px;
}

/* Horario y horas del curso, junto al precio */
.aprending-course-detail {
    font-size: 15px;
    color: var(--aprending-muted);
}

/* ── Botones ───────────────────────────────────────────────────────────── */

.aprending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.aprending-btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.aprending-btn:hover,
.aprending-btn:focus {
    text-decoration: none;
}

/* !important: muchos temas estilan `.entry-content a` y pisarían el color del
   texto, dejando el botón verde con el enlace en azul. */
.aprending-btn--primary,
.aprending-card .aprending-btn--primary,
.entry-content .aprending-btn--primary {
    background: var(--aprending-green);
    color: #fff !important;
}

.aprending-btn--primary:hover,
.aprending-btn--primary:focus {
    background: var(--aprending-green-dark);
    color: #fff !important;
}

/* Los dos botones son iguales: verde relleno con texto blanco. */
.aprending-btn--secondary,
.aprending-card .aprending-btn--secondary,
.entry-content .aprending-btn--secondary {
    background: var(--aprending-green);
    color: #fff !important;
}

.aprending-btn--secondary:hover,
.aprending-btn--secondary:focus {
    background: var(--aprending-green-dark);
    color: #fff !important;
}

.aprending-btn__icon {
    margin-right: 2px;
}

/* ── Sello de actualización ────────────────────────────────────────────── */

.aprending-updated {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--aprending-muted);
    font-style: italic;
}

/* ── Listado ───────────────────────────────────────────────────────────── */

.aprending-list--cols-2 .aprending-card,
.aprending-list--cols-3 .aprending-card,
.aprending-list--cols-4 .aprending-card {
    /* En rejilla la tarjeta se apila: no hay ancho para body + imagen en fila */
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.aprending-list--cols-2 .aprending-card__media,
.aprending-list--cols-3 .aprending-card__media,
.aprending-list--cols-4 .aprending-card__media {
    flex-basis: auto;
    max-width: 100%;
    order: -1; /* la foto encabeza la tarjeta cuando está apilada */
}

.aprending-list--cols-2 .aprending-card__title,
.aprending-list--cols-3 .aprending-card__title,
.aprending-list--cols-4 .aprending-card__title {
    font-size: 22px;
}

@media (min-width: 782px) {
    .aprending-list--cols-2,
    .aprending-list--cols-3,
    .aprending-list--cols-4 {
        display: grid;
        gap: 20px;
    }
    .aprending-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aprending-list--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aprending-list--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .aprending-list--cols-2 .aprending-card,
    .aprending-list--cols-3 .aprending-card,
    .aprending-list--cols-4 .aprending-card {
        margin: 0;
    }

    /* El sello de fecha ocupa toda la fila bajo la rejilla */
    .aprending-list--cols-2 .aprending-updated,
    .aprending-list--cols-3 .aprending-updated,
    .aprending-list--cols-4 .aprending-updated {
        grid-column: 1 / -1;
    }
}

/* ── Ficha completa de academia ─────────────────────────────────────────── */

.aprending-full {
    margin: 36px 0;
    color: var(--aprending-text);
}

/* Cabecera */

.aprending-full__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
}

.aprending-full__num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--aprending-green);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.aprending-full__address {
    margin: 0 0 18px;
    font-size: 17px;
    color: var(--aprending-muted);
}

.aprending-full__address a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--aprending-border);
}

/* Recuadros: valoración, zona, tamaño, precio */

.aprending-full__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.aprending-full__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--aprending-border);
    border-radius: var(--aprending-radius);
    background: #fff;
}

.aprending-full__stat-ico {
    flex: none;
    font-size: 18px;
    line-height: 1;
}

.aprending-full__stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aprending-full__stat-value {
    font-weight: 600;
    font-size: 15px;
}

.aprending-full__stat-note {
    font-size: 13px;
    color: var(--aprending-muted);
}

/* Foto grande + bloque de precio */

.aprending-full__hero {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}

@media (min-width: 860px) {
    /* La foto manda: el sidebar se queda en el ancho justo para el importe.
       `align-items: start` es imprescindible: con el `stretch` por defecto el
       figure se estiraba a la altura de la fila y perdía su 16/9, quedando tan
       alto como la tarjeta de precio. */
    .aprending-full__hero {
        grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
        /* `!important` porque el tema (Elementor) declara `align-items: stretch`
           sobre los contenedores del contenido y gana por especificidad; sin
           esto el figure se estira y pierde el 16/9. */
        align-items: start !important;
    }
    /* La tarjeta sí se estira hasta igualar la altura de la foto */
    .aprending-full__price { align-self: stretch; }

    /* Entre 860 y 1200px la columna se estrecha y el texto de la tarjeta, que no
       encoge, sobresaldría bajo la foto. Ahí se deja que la foto acompañe a la
       tarjeta en altura; el tope de 1/1 evita que llegue a verse apaisada. */
    .aprending-full__photo {
        min-height: 100%;
        max-height: none;
    }
}

@media (min-width: 1200px) {
    /* Con sitio de sobra manda el 16/9 exacto */
    .aprending-full__photo { min-height: 0; }
}

.aprending-full__photo {
    margin: 0;
    border-radius: var(--aprending-radius-lg);
    overflow: hidden;
    /* 16/9 siempre: la foto no se estira para seguir al sidebar, es el sidebar
       el que se ajusta a ella. Dejarla crecer en altura la volvía casi cuadrada. */
    aspect-ratio: 16 / 9;
    /* El figure no puede salirse de su columna. El plugin de lazy load (EWWW)
       sustituye el src por un GIF de 1x1 hasta que carga la foto real, y sin
       estos topes el figure se dimensionaba con ese placeholder y luego se
       desbordaba por encima de la tarjeta de precio. */
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.aprending-full__photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

/* Sin sidebar la foto ocupa todo el ancho, y a 16/9 quedaría desproporcionada */
.aprending-full__hero:not(:has(.aprending-full__price)) .aprending-full__photo {
    aspect-ratio: 21 / 9;
}

.aprending-full__price {
    display: flex;
    flex-direction: column;
    padding: 16px 20px !important;
    border: 1.5px solid var(--aprending-border);
    border-radius: var(--aprending-radius);
    background: #fff;
}

/* El tema aplica `margin-bottom: 28px` a todos los <p> del contenido y ganaba
   por especificidad: los márgenes de la tarjeta se inflaban de 10px a 28px y
   sumaban ~100px de más, que era lo que la hacía sobresalir bajo la foto.
   Hace falta `!important` porque el selector del tema es más específico que
   este; cada bloque fija su margen real justo debajo. */
.aprending-full__price > * {
    margin: 0 !important;
}

.aprending-full__price-head {
    margin: 0 0 10px !important;
    font-size: 15px;
    line-height: 1.3;
    color: var(--aprending-text);
}

.aprending-full__price-from {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--aprending-green);
}

.aprending-full__price-amount {
    margin: 0 0 10px !important;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    color: var(--aprending-green);
}

.aprending-full__price-list {
    list-style: none;
    margin: 0 0 12px !important;
    padding: 0;
    font-size: 15px;
    /* Las líneas que ocupan dos renglones ("Habitación individual en residencia
       de estudiantes") no deben separarse tanto como las de una sola. */
    line-height: 1.3;
}

.aprending-full__price-list li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 24px;
}

/* Check en ::before y no como carácter en el HTML: es decoración, y así los
   lectores de pantalla no leen un "visto" delante de cada línea. */
.aprending-full__price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--aprending-green);
    font-weight: 700;
}

.aprending-full__price-foot {
    /* `auto` arriba: si la foto es más alta que el sidebar, el hueco sobrante
       se va aquí y el pie queda abajo en vez de dejar un vacío al final. */
    margin: auto 0 0 !important;
    padding-top: 10px;
    font-size: 13px;
    color: var(--aprending-muted);
    text-align: center;
}

/* Los botones ocupan el ancho del sidebar, apilados y con separación propia:
   sin `gap` el hueco entre ellos lo pone el margen del tema y descuadra. */
/* La clase del bloque de botones es `aprending-actions`; con el nombre en plural
   equivocado estas reglas no aplicaban y el sidebar cargaba con el margen de 18px
   y los botones en fila. */
.aprending-full__price .aprending-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 10px 0 0 !important;
}

.aprending-full__price .aprending-btn {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
}

/* "Lo mejor de X" + galería */

.aprending-full__cols {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .aprending-full__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}

.aprending-full__best,
.aprending-full__gallery {
    padding: 20px 22px;
    border: 1.5px solid var(--aprending-border);
    border-radius: var(--aprending-radius);
    background: #fff;
}

.aprending-full__h3 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 700;
}

.aprending-full__best-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aprending-full__best-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

.aprending-full__best-list li:last-child { margin-bottom: 0; }

.aprending-full__check {
    flex: none;
    color: var(--aprending-green);
    font-weight: 700;
}

.aprending-full__best-text {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: var(--aprending-muted);
}

.aprending-full__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.aprending-full__shot {
    margin: 0;
    border-radius: var(--aprending-radius);
    overflow: hidden;
}

.aprending-full__shot img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

/* Fotos más allá de la cuarta: siguen en el DOM para que el lightbox pueda
   recorrerlas, pero no ocupan sitio. */
.aprending-full__shot--hidden { display: none; }

/* ── Vídeo en la parrilla ──────────────────────────────────────────────── */

.aprending-full__shot--video a {
    position: relative;
    display: block;
}

/* Velo oscuro: las miniaturas de YouTube suelen ser claras y el play se perdía */
.aprending-full__shot--video a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    transition: background .15s ease;
}

.aprending-full__shot--video a:hover::after { background: rgba(0, 0, 0, .1); }

.aprending-full__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    /* z-index para quedar por encima del velo de ::after */
    z-index: 1;
    transition: background .15s ease, transform .15s ease;
}

/* El triángulo se dibuja con bordes: no hace falta ni icono ni SVG */
.aprending-full__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}

.aprending-full__shot--video a:hover .aprending-full__play {
    background: var(--aprending-green);
    transform: translate(-50%, -50%) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .aprending-full__play,
    .aprending-full__shot--video a::after { transition: none; }
    .aprending-full__shot--video a:hover .aprending-full__play {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 520px) {
    .aprending-full__title  { font-size: 26px; }
    .aprending-full__grid   { grid-template-columns: 1fr; }
    .aprending-full__price-amount { font-size: 36px; }
}

/* ── Presupuesto ───────────────────────────────────────────────────────── */

.aprending-quote {
    border: 2px solid var(--aprending-border);
    border-radius: var(--aprending-radius);
    padding: 22px 26px;
    margin: 24px 0;
    background: #fff;
}

.aprending-quote__title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--aprending-green);
}

.aprending-quote__sub {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--aprending-muted);
}

.aprending-quote__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
}

.aprending-quote__table th,
.aprending-quote__table td {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-weight: 400;
    color: var(--aprending-text);
}

.aprending-quote__table td {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.aprending-quote__table tr.is-discount th,
.aprending-quote__table tr.is-discount td {
    color: var(--aprending-green);
}

.aprending-quote__table tfoot th,
.aprending-quote__table tfoot td {
    border-bottom: none;
    border-top: 2px solid var(--aprending-border);
    padding-top: 12px;
    font-size: 19px;
    font-weight: 800;
}

.aprending-quote__table tfoot td {
    color: var(--aprending-green);
}

/* ── Presupuesto por duraciones ────────────────────────────────────────── */

.aprending-quote__start {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--aprending-muted);
}

.aprending-quote__durations {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.aprending-quote__durations th,
.aprending-quote__durations td {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: baseline;
}

.aprending-quote__durations tr:last-child th,
.aprending-quote__durations tr:last-child td {
    border-bottom: none;
}

.aprending-quote__durations th {
    font-size: 18px;
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-quote__durations td {
    text-align: right;
    white-space: nowrap;
}

.aprending-quote__from {
    font-size: 15px;
    color: var(--aprending-muted);
    margin-right: 6px;
}

.aprending-quote__amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--aprending-green);
}

.aprending-quote__note {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--aprending-muted);
}

.aprending-quote__total-only {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-top: 2px solid var(--aprending-border);
}

.aprending-quote__total-label {
    font-size: 16px;
    font-weight: 700;
}

.aprending-quote__total-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--aprending-green);
}

/* ── Galería ───────────────────────────────────────────────────────────── */

.aprending-gallery {
    margin: 24px 0;
}

.aprending-gallery__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-gallery__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
    .aprending-gallery--cols-3 .aprending-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aprending-gallery--cols-4 .aprending-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aprending-gallery--cols-5 .aprending-gallery__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .aprending-gallery--cols-6 .aprending-gallery__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.aprending-gallery--cols-1 .aprending-gallery__grid { grid-template-columns: 1fr; }

.aprending-gallery__item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}

.aprending-gallery__item img {
    display: block;
    width: 100%;
    height: var(--aprending-thumb-h, 200px);
    object-fit: cover;
    transition: transform .25s ease;
}

.aprending-gallery__link:hover img,
.aprending-gallery__link:focus img {
    transform: scale(1.04);
}

/* ── Galería en mosaico: 1 grande + 4 pequeñas ─────────────────────────── */

.aprending-gallery__mosaic {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .aprending-gallery__mosaic { grid-template-columns: 1fr 1fr; }
}

.aprending-gallery__side {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* No todas las academias tienen 5 fotos. Sin esto, la de 4 dejaba un hueco
   blanco en la esquina inferior derecha y la de 3 pintaba una sola miniatura
   a media anchura, con la otra mitad vacía. */

/* 3 en total (1 grande + 2 al lado): una columna, apiladas */
.aprending-gallery__side:has(> .aprending-gallery__item:nth-child(2):last-child) {
    grid-template-columns: 1fr;
}

/* 4 en total (1 grande + 3 al lado): la tercera ocupa toda la fila de abajo */
.aprending-gallery__side > .aprending-gallery__item:nth-child(3):last-child {
    grid-column: 1 / -1;
}

/* La foto grande ocupa toda la altura de la rejilla de al lado */
.aprending-gallery__main,
.aprending-gallery__main .aprending-gallery__item,
.aprending-gallery__main .aprending-gallery__link {
    height: 100%;
}

/* La grande mide 2 filas de miniatura + el hueco, tanto si al lado hay 4 fotos
   (2x2) como 3 (2 arriba + 1 ancha) o 2 (apiladas): en los tres casos la
   columna derecha son 2 filas, así que la altura cuadra sin casos especiales. */
.aprending-gallery__main img {
    height: 100%;
    min-height: calc(var(--aprending-thumb-h, 200px) * 2 + 10px);
}

.aprending-gallery__side img {
    height: var(--aprending-thumb-h, 200px);
}

/* Fotos más allá de la quinta: siguen en el DOM para que el lightbox pueda
   recorrerlas, pero no ocupan sitio en la página. */
.aprending-gallery__hidden { display: none; }

.aprending-gallery__item { position: relative; }

/* Contador "+N" sobre la última miniatura visible */
.aprending-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    pointer-events: none;
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */

.aprending-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    background: rgba(0, 0, 0, .88);
}

.aprending-lightbox[hidden] {
    display: none;
}

.aprending-lightbox__img {
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

/* El vídeo mantiene 16/9 y se limita por ancho y alto a la vez, para que en
   pantallas apaisadas no se salga por abajo. */
.aprending-lightbox__frame {
    width: min(92vw, 138vh);
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    border: 0;
    border-radius: 4px;
    background: #000;
}

.aprending-lightbox__caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.aprending-lightbox__counter {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.aprending-lightbox__close,
.aprending-lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.aprending-lightbox__close:hover,
.aprending-lightbox__nav:hover {
    background: rgba(255, 255, 255, .25);
}

.aprending-lightbox__close { top: 18px; right: 18px; }
.aprending-lightbox__nav--prev { left: 18px;  top: 50%; transform: translateY(-50%); }
.aprending-lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ── Ofertas ───────────────────────────────────────────────────────────── */

.aprending-offers {
    margin: 24px 0;
}

.aprending-offers__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-offer {
    border-left: 4px solid var(--aprending-green);
    background: var(--aprending-bg-soft);
    border-radius: 0 var(--aprending-radius) var(--aprending-radius) 0;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.aprending-offer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.aprending-offer__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-offer__value {
    background: var(--aprending-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.aprending-offer__where {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--aprending-muted);
}

.aprending-offer__conditions {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--aprending-muted);
}

/* ── Error (solo visible para editores) ────────────────────────────────── */

.aprending-error {
    border: 1px dashed #e74c3c;
    background: #fdecea;
    color: #c0392b;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 16px 0;
    font-size: 14px;
}

/* ── Reseñas de Google ─────────────────────────────────────────────────── */

.aprending-reviews {
    border: 1px solid var(--aprending-border);
    border-radius: var(--aprending-radius, 8px);
    overflow: hidden;
    margin: 24px 0;
    background: #fff;
}

.aprending-reviews__title {
    margin: 0;
    padding: 14px 18px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-reviews__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--aprending-green-dark, #1e7e42);
    color: #fff;
}

.aprending-reviews__score {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.aprending-reviews__label {
    font-size: 18px;
    font-weight: 700;
}

/* Estrellas parciales: se pinta el ancho proporcional a la nota sobre 5 */
.aprending-reviews__stars {
    position: relative;
    display: inline-block;
    font-size: 17px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .35);
}

.aprending-reviews__stars::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    width: calc(var(--aprending-rating, 5) / 5 * 100%);
    color: #fbbf24;
}

.aprending-reviews__count {
    font-size: 14px;
    opacity: .9;
}

.aprending-reviews__track-wrap { overflow: hidden; }

.aprending-reviews__track {
    display: flex;
    transition: transform .3s ease;
}

/* En carrusel cada reseña ocupa el ancho completo; apiladas, se ven todas */
.aprending-reviews--slider .aprending-review {
    flex: 0 0 100%;
    min-width: 100%;
}

.aprending-review {
    padding: 18px;
    box-sizing: border-box;
}

.aprending-reviews:not(.aprending-reviews--slider) .aprending-review + .aprending-review {
    border-top: 1px solid var(--aprending-border);
}

.aprending-review__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.aprending-review__avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--aprending-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.aprending-review__name {
    font-weight: 700;
    color: var(--aprending-text);
}

.aprending-review__stars {
    margin-left: auto;
    color: #fbbf24;
    letter-spacing: 1px;
}

.aprending-review__text {
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
    line-height: 1.55;
    color: var(--aprending-text);
}

.aprending-review__date {
    margin-top: 10px;
    font-size: 13px;
    color: var(--aprending-muted);
}

.aprending-reviews__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px;
    border-top: 1px solid var(--aprending-border);
}

.aprending-reviews__btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--aprending-border);
    border-radius: 6px;
    background: #fff;
    color: var(--aprending-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.aprending-reviews__btn:hover {
    background: var(--aprending-green);
    border-color: var(--aprending-green);
    color: #fff;
}

.aprending-reviews__indicator {
    font-size: 14px;
    color: var(--aprending-muted);
    min-width: 48px;
    text-align: center;
}

/* ── Móvil ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .aprending-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .aprending-card__media {
        flex-basis: auto;
        max-width: 100%;
        order: -1;
    }

    .aprending-card__title { font-size: 23px; }
    .aprending-card__facts li { font-size: 15px; }

    .aprending-actions { flex-direction: column; }
    .aprending-btn { width: 100%; }

    .aprending-quote { padding: 18px; }
    .aprending-quote__table { font-size: 15px; }
    .aprending-quote__durations th { font-size: 16px; }
    .aprending-quote__amount { font-size: 22px; }
}
