/* =============================================================
   Aviumsur Promociones – Estilos v4
   Paleta corporativa: rojo #A61E00 · gris oscuro #3B3B3A
   ============================================================= */

:root {
    --av-rojo:        #A61E00;
    --av-rojo-oscuro: #7f1700;
    --av-gris:        #3B3B3A;
    --av-gris-medio:  #666;
    --av-gris-suave:  #f4f4f4;
    --av-gris-borde:  #e0e0e0;
    --av-blanco:      #fff;
    --av-texto:       #333;
    --av-radius:      6px;
    --av-sombra:      0 3px 16px rgba(0,0,0,.1);
    --av-trans:       .22s ease;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT PRINCIPAL
   Nota: si Divi sigue limitando el ancho, ve a la página en
   WordPress → Atributos → Plantilla → "Full Width" o activa
   "Divi → Theme Options → Layout → Full Width".
   ───────────────────────────────────────────────────────────── */

/* Rompe el contenedor de Divi hacia los bordes */
.av-main {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 10% 60px;   /* 10% cada lado = 80% de uso útil */
    margin: 0 auto;
}

@media (max-width: 1200px) { .av-main { padding-left: 5%;  padding-right: 5%;  } }
@media (max-width: 768px)  { .av-main { padding-left: 4%;  padding-right: 4%;  padding-top: 32px; } }

/* Layout ficha + sidebar */
.av-layout-con-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.av-layout-sidebar { position: sticky; top: 90px; }

@media (max-width: 1024px) {
    .av-layout-con-sidebar { grid-template-columns: 1fr; }
    .av-layout-sidebar     { position: static; }
}

/* ─────────────────────────────────────────────────────────────
   HERO: imagen + info
   ───────────────────────────────────────────────────────────── */

.av-ficha__hero { margin-bottom: 44px; }

.av-ficha__hero-img {
    position: relative;
    width: 100%;
    height: 440px;
    background-size: cover;
    background-position: center;
    border-radius: var(--av-radius);
    overflow: hidden;
    margin-bottom: 26px;
}
@media (max-width: 768px) { .av-ficha__hero-img { height: 220px; } }

.av-ficha__badge {
    position: absolute;
    top: 18px; left: 18px;
    background: var(--av-rojo);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 5px 14px;
    border-radius: 20px;
}

/* Hero body: título izq · precio der */
.av-ficha__hero-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.av-ficha__titulo-bloque { flex: 1; min-width: 0; }

.av-ficha__logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}

.av-ficha__titulo {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    color: var(--av-gris);
    margin: 0 0 8px;
    line-height: 1.2;
}

.av-ficha__ubicacion {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--av-gris-medio);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0 0 10px;
}

/* Descripción breve con fondo gris claro */
.av-ficha__desc-breve {
    display: inline-block;
    background: var(--av-gris-suave);
    color: var(--av-gris-medio);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 7px 14px;
    border-radius: var(--av-radius);
    border-left: 3px solid var(--av-gris-borde);
}

/* Bloque precio (derecha) */
.av-ficha__precio-bloque {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.av-ficha__precio-desde {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--av-rojo);
    margin-bottom: 5px;
}

.av-ficha__precio {
    display: block;
    background: var(--av-rojo);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--av-radius);
    white-space: nowrap;
}

@media (max-width: 580px) {
    .av-ficha__hero-body   { flex-wrap: wrap; }
    .av-ficha__precio-bloque { order: -1; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
    .av-ficha__precio-desde  { margin-bottom: 0; }
}

/* ─────────────────────────────────────────────────────────────
   SECCIONES
   ───────────────────────────────────────────────────────────── */

.av-ficha__seccion {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--av-gris-borde);
}
.av-ficha__seccion:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.av-ficha__seccion-titulo {
    font-size: 18px;
    font-weight: 700;
    color: var(--av-gris);
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--av-rojo);
    display: inline-block;
}

/* ─────────────────────────────────────────────────────────────
   GALERÍA – SLIDER
   ───────────────────────────────────────────────────────────── */

.av-slider {
    position: relative;
    user-select: none;
}

.av-slider__pantalla {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--av-radius);
    background: #111;
    cursor: pointer;
}

.av-slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.av-slider__img.av-activa { opacity: 1; pointer-events: auto; }

/* Flechas */
.av-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background var(--av-trans);
}
.av-slider__btn:hover { background: var(--av-rojo); }
.av-slider__btn--prev { left: 12px; }
.av-slider__btn--next { right: 12px; }

/* Contador */
.av-slider__contador {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 5;
}

/* Miniaturas */
.av-slider__miniaturas {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.av-slider__miniatura {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: .55;
    transition: opacity var(--av-trans), outline var(--av-trans);
    outline: 2px solid transparent;
    flex-shrink: 0;
}
.av-slider__miniatura.av-activa {
    opacity: 1;
    outline-color: var(--av-rojo);
}
.av-slider__miniatura:hover { opacity: .85; }

/* ─────────────────────────────────────────────────────────────
   DESCRIPCIÓN AMPLIADA
   ───────────────────────────────────────────────────────────── */

.av-ficha__descripcion-texto {
    font-size: 15px;
    line-height: 1.85;
    color: var(--av-texto);
}

/* ─────────────────────────────────────────────────────────────
   DESCARGAS
   ───────────────────────────────────────────────────────────── */

.av-ficha__descargas-botones { display: flex; flex-wrap: wrap; gap: 14px; }

.av-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--av-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--av-trans), color var(--av-trans);
    border: 2px solid transparent;
}

.av-btn--descarga {
    background: transparent;
    color: var(--av-gris);
    border-color: var(--av-gris);
}
.av-btn--descarga:hover { background: var(--av-rojo); border-color: var(--av-rojo); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   EQUIPAMIENTO
   ───────────────────────────────────────────────────────────── */

.av-ficha__equipamiento-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.av-ficha__equipamiento-lista li {
    padding: 9px 14px 9px 28px;
    position: relative;
    font-size: 14px;
    color: var(--av-texto);
    line-height: 1.5;
    border-left: 3px solid var(--av-rojo);
}
.av-ficha__equipamiento-lista li::before {
    content: '';
    position: absolute;
    left: 8px; top: 15px;
    width: 6px; height: 6px;
    background: var(--av-rojo);
    border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────
   CALIFICACIÓN ENERGÉTICA – horizontal (imagen + texto al lado)
   ───────────────────────────────────────────────────────────── */

.av-ficha__calificacion-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.av-cal__item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    padding: 0;
}

.av-cal__imagen {
    max-height: 80px;
    width: auto;
    flex-shrink: 0;
}

.av-cal__badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.av-cal__label {
    font-size: 14px;
    color: var(--av-texto);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   UBICACIÓN Y MAPA
   ───────────────────────────────────────────────────────────── */

.av-ficha__mapa-texto {
    font-size: 15px;
    line-height: 1.75;
    color: var(--av-texto);
    margin-bottom: 20px;
}

.av-ficha__mapa-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--av-radius);
}

/* ─────────────────────────────────────────────────────────────
   CONTACTO DE VENTA – lista limpia, sin cajas
   ───────────────────────────────────────────────────────────── */

.av-ficha__contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.av-contacto-fila {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--av-gris-borde);
}
.av-contacto-fila:last-child { border-bottom: none; }

.av-contacto-icono {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--av-gris-suave);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--av-rojo);
    margin-top: 2px;
}

.av-contacto-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.av-contacto-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #999;
}

.av-contacto-valor {
    font-size: 14px;
    color: var(--av-gris-medio);
    line-height: 1.6;
    margin: 0;
}

/* Links en gris, transición suave a rojo */
.av-contacto-valor a {
    color: var(--av-gris-medio);
    text-decoration: none;
    transition: color var(--av-trans);
}
.av-contacto-valor a:hover { color: var(--av-rojo); }

/* ─────────────────────────────────────────────────────────────
   CARACTERÍSTICAS DE LA PROMOCIÓN – filas izq alineadas
   ───────────────────────────────────────────────────────────── */

.av-ficha__caract-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.av-caract-fila {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--av-gris-borde);
    text-align: left;
}
.av-caract-fila:last-child { border-bottom: none; }

.av-caract-role {
    flex-shrink: 0;
    width: 110px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--av-rojo);
}

.av-caract-logo {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
}
.av-caract-logo img {
    max-height: 36px;
    max-width: 80px;
    width: auto;
    object-fit: contain;
}

.av-caract-nombre {
    font-size: 14px;
    color: var(--av-texto);
    line-height: 1.4;
}
.av-caract-nombre a {
    color: var(--av-gris);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--av-trans);
}
.av-caract-nombre a:hover { color: var(--av-rojo); }

/* ─────────────────────────────────────────────────────────────
   FORMULARIO SIDEBAR
   ───────────────────────────────────────────────────────────── */

.av-form-wrapper {
    background: var(--av-gris);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--av-sombra);
}

.av-form-header { background: var(--av-rojo); padding: 20px 24px; }
.av-form-titulo { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.av-form-subtitulo { font-size: 12px; color: rgba(255,255,255,.8); margin: 0; }

.av-form-inmueble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e2e2d;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.av-form { padding: 18px 24px 24px; }

.av-form-campo { margin-bottom: 13px; }

.av-form-campo label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 5px;
}
.av-requerido { color: var(--av-rojo); }

.av-form-campo input[type="text"],
.av-form-campo input[type="email"],
.av-form-campo input[type="tel"],
.av-form-campo select,
.av-form-campo textarea {
    width: 100%;
    background: #2e2e2d;
    border: 1px solid #4a4a49;
    border-radius: var(--av-radius);
    color: #fff;
    font-size: 14px;
    padding: 9px 12px;
    box-sizing: border-box;
    transition: border-color var(--av-trans);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.av-form-campo select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A61E00' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.av-form-campo select option { background: #3B3B3A; }

.av-form-campo input:focus,
.av-form-campo select:focus,
.av-form-campo textarea:focus { outline: none; border-color: var(--av-rojo); }

.av-form-campo input::placeholder,
.av-form-campo textarea::placeholder { color: #666; }

.av-form-campo--privacidad label {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 11px; text-transform: none; letter-spacing: 0;
    color: #999; cursor: pointer;
}
.av-form-campo--privacidad input[type="checkbox"] {
    width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
    accent-color: var(--av-rojo);
}
.av-form-campo--privacidad a { color: var(--av-rojo); text-decoration: none; }

.av-btn--enviar {
    width: 100%; justify-content: center;
    background: var(--av-rojo); color: #fff;
    font-size: 15px; padding: 13px; margin-top: 6px;
    border: none;
}
.av-btn--enviar:hover { background: var(--av-rojo-oscuro); }
.av-btn--enviar:disabled { opacity: .6; cursor: not-allowed; }

.av-form-status { margin-top: 12px; font-size: 13px; border-radius: var(--av-radius); }
.av-form-status.av-ok    { background: rgba(0,110,50,.15); color: #2e7d32; padding: 11px; border: 1px solid rgba(0,110,50,.25); }
.av-form-status.av-error { background: rgba(166,30,0,.1);  color: var(--av-rojo); padding: 11px; border: 1px solid rgba(166,30,0,.25); }

/* ─────────────────────────────────────────────────────────────
   TARJETAS DE LISTADO
   ───────────────────────────────────────────────────────────── */

.av-tarjetas { display: grid; gap: 28px; }
.av-cols-1 { grid-template-columns: 1fr; }
.av-cols-2 { grid-template-columns: repeat(2,1fr); }
.av-cols-3 { grid-template-columns: repeat(3,1fr); }
.av-cols-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 1024px) { .av-cols-4,.av-cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .av-cols-2,.av-cols-3,.av-cols-4 { grid-template-columns: 1fr; } }

.av-tarjeta {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--av-sombra);
    display: flex; flex-direction: column;
    transition: transform var(--av-trans), box-shadow var(--av-trans);
    border-top: 3px solid transparent;
}
.av-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.15); border-top-color: var(--av-rojo); }

.av-tarjeta__imagen-wrap { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.av-tarjeta__imagen { width: 100%; height: 100%; object-fit: cover; transition: transform var(--av-trans); }
.av-tarjeta:hover .av-tarjeta__imagen { transform: scale(1.05); }
.av-tarjeta__imagen--placeholder { background: #e8e8e8; width: 100%; height: 100%; }

.av-tarjeta__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--av-rojo); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 14px; letter-spacing: .4px;
}

.av-tarjeta__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.av-tarjeta__logo img { max-height: 46px; width: auto; margin-bottom: 10px; }
.av-tarjeta__titulo { font-size: 16px; font-weight: 700; color: var(--av-gris); margin: 0 0 8px; }
.av-tarjeta__ubicacion { display: flex; align-items: center; gap: 4px; color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 10px; }
.av-tarjeta__descripcion { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 16px; flex: 1; }

.av-tarjeta__btn {
    display: inline-block;
    background: var(--av-rojo); color: #fff;
    font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: var(--av-radius);
    text-decoration: none; align-self: flex-start;
    transition: background var(--av-trans);
}
.av-tarjeta__btn:hover { background: var(--av-rojo-oscuro); }

.av-sin-resultados { color: #999; font-style: italic; padding: 20px 0; }

/* ─────────────────────────────────────────────────────────────
   TARJETA – modo lista de interesados
   ───────────────────────────────────────────────────────────── */

.av-tarjeta--lista {
    border-top: 3px solid var(--av-rojo);
    opacity: .92;
}

/* ─────────────────────────────────────────────────────────────
   TARJETA – obras entregadas
   ───────────────────────────────────────────────────────────── */

.av-tarjeta--entregada {
    border-top: 3px solid var(--av-gris);
    opacity: .88;
}

.av-tarjeta__badge-entregada {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--av-gris);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 4px 10px;
    border-radius: 12px;
}

.av-tarjeta__badge-lista {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(59,59,58,.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 9px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.av-tarjeta__btn--lista {
    background: transparent;
    color: var(--av-rojo);
    border: 2px solid var(--av-rojo);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--av-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: background var(--av-trans), color var(--av-trans);
    font-family: inherit;
    line-height: 1.2;
}
.av-tarjeta__btn--lista:hover {
    background: var(--av-rojo);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   MODAL DE LISTA DE INTERESADOS
   ───────────────────────────────────────────────────────────── */

.av-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: av-fade-in .2s ease;
}

.av-modal-overlay[hidden] { display: none; }

@keyframes av-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.av-modal-caja {
    background: var(--av-gris);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    animation: av-slide-up .25s ease;
}

@keyframes av-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.av-modal-header {
    background: var(--av-rojo);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px 12px 0 0;
}

.av-modal-titulo   { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.av-modal-subtitulo { font-size: 12px; color: rgba(255,255,255,.8); margin: 0; }

.av-modal-cerrar {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--av-trans);
    line-height: 1;
}
.av-modal-cerrar:hover { background: rgba(255,255,255,.35); }

.av-modal-inmueble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2e2e2d;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.av-modal-inmueble::before {
    content: '🏠';
    font-size: 15px;
}

.av-modal-caja .av-form {
    padding: 18px 24px 24px;
}

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX (abre al clicar la imagen grande del slider)
   ───────────────────────────────────────────────────────────── */

.av-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.av-lightbox.av-activo { display: flex; }

.av-lightbox__contenido {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    text-align: center;
}

.av-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.av-lightbox__caption {
    color: #bbb;
    font-size: 13px;
    margin-top: 10px;
}

.av-lightbox__cerrar,
.av-lightbox__prev,
.av-lightbox__next {
    position: fixed;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--av-trans);
    z-index: 10;
}
.av-lightbox__cerrar:hover,
.av-lightbox__prev:hover,
.av-lightbox__next:hover { background: var(--av-rojo); }

.av-lightbox__cerrar { top: 18px; right: 18px; }
.av-lightbox__prev   { top: 50%; left: 16px;  transform: translateY(-50%); }
.av-lightbox__next   { top: 50%; right: 16px; transform: translateY(-50%); }

@media (max-width: 600px) {
    .av-lightbox__prev  { left: 6px; }
    .av-lightbox__next  { right: 6px; }
}
