/* ========================================================================== 
   Cards (bloque .portada-contenedor)
   Tema oscuro fijo, como la original.
   ========================================================================== */

:root {
    --c-accent: #e3093f;
    --c-ok: #1db954;
    --c-text: #e8e8e8;
    --c-muted: #9aa0a6;
    --c-bg: #121212;
    --c-surface: #000;
    --c-img-bg: #000;
    --c-border: rgba(227, 9, 63, .35);
    --c-on-accent: #fff;
    --card-radius: 12px;
    --card-gap: 32px;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    --card-shadow-hover: 0 8px 22px rgba(0, 0, 0, .7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
}

/* Rejilla: usar Bootstrap original (.row, .col-6, .col-xl-4) ---------- */
.contenedor {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.8rem;
    max-width: 1200px;
    margin-inline: auto;
    padding: 18px 12px 36px;
}

/* Wrapper original de cada card */
.contenedor > .col-6 {
    position: relative;
    overflow: visible;
    margin-bottom: 24px;
}

/* Bloque: card (replica portada-card.css original) --------------------- */
.portada-contenedor {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 354px;
    height: 515px;
    margin: 0 auto;
    background: #000;
    border: 6px solid #7e0000;
    border-radius: 0;
    box-shadow: var(--card-shadow);
    overflow: visible;
    transform-origin: top center;
    transition: box-shadow .2s;
}

.portada-contenedor:hover {
    box-shadow: var(--card-shadow-hover);
}

.portada-contenedor.destacado {
    border-color: #7e0000;
}

/* Elemento: cabecera -------------------------------------------------- */
.portada-contenedor .titulo {
    position: relative;
    top: -5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 35px;
    padding: 0 10px;
    overflow: visible;
    border: 3px solid #7e0000;
    background: #7e0000;
    color: #fff;
    line-height: 1.5em;
    font-size: 1rem;
}

.portada-contenedor .distancia {
    flex: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
}

.portada-contenedor .nombre {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 150px;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%) scale(var(--nombre-scale, 1));
    transform-origin: center;
}

.portada-contenedor .edad {
    flex: none;
    margin-left: auto;
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
}

.sello {
    position: absolute;
    z-index: 10;
    left: -54px;
    top: 20px;
    width: 95px;
    pointer-events: none;
}

.sello img {
    max-width: 100%;
    height: auto;
}

/* Elemento: media ----------------------------------------------------- */
.interno {
    position: absolute;
    top: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 355px;
}

.cajanegra {
    position: absolute;
    top: 42px;
    left: 50%;
    z-index: 0;
    display: block;
    width: 330px;
    height: 330px;
    transform: translateX(-50%);
    overflow: hidden;
}

.cajanegra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}

.portada-contenedor .imgbox {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 330px;
    height: 330px;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.portada-contenedor .imgbox a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.portada-contenedor .foto {
    display: block;
    width: auto;
    height: auto;
    max-width: 330px;
    max-height: 330px;
    margin-top: 0;
    border: 3px solid #7e0000;
    object-fit: contain;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .18);
    transition: opacity .15s;
}

.portada-contenedor .disponibilidad {
    position: absolute;
    left: 3px;
    bottom: 8px;
    z-index: 2;
    align-self: flex-end;
    padding: 3px 10px;
    border-radius: 0;
    background: rgb(0, 128, 0);
    color: #fff;
    font-size: .85em;
    font-weight: 400;
    letter-spacing: 0;
}

.nodisponible .disponibilidad,
.disponibilidad.nodisponible {
    background: red;
}

.portada-contenedor .bandera {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    align-self: flex-end;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

.stars {
    position: relative;
    top: 2px;
    z-index: 2;
    width: 60px;
}

.portada-contenedor .video {
    position: absolute;
    top: 8px;
    right: 0;
    bottom: auto;
    z-index: 2;
    display: block;
    margin: 10px 0;
    padding: 1px 10px;
    border-radius: 0;
    background: #7e0000;
    color: #fff;
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.8em;
    letter-spacing: 0;
}

/* Boton CTA WhatsApp (posicion original) ------------------------------ */
.llamar {
    position: absolute;
    right: 2%;
    bottom: -10px;
    z-index: 5;
    display: inline-flex;
    line-height: 0;
    transition: transform .15s;
}

.llamar:hover {
    transform: scale(1.12);
}

.llamar img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

/* Animaciones de entrada de las etiquetas ----------------------------- */
@keyframes entra-izq {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes entra-der {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animacion_izquierda {
    animation: entra-izq .4s ease both;
}

.animacion_derecha {
    animation: entra-der .4s ease both;
}

/* Elemento: tags ------------------------------------------------------ */
.tags {
    --bs-gutter-x: 15px;
    width: 100%;
    margin-top: auto;
    padding: 0 10px 10px;
}

.tags .row {
    display: flex;
    --bs-gutter-x: 0;
}

.tags .a,
.tags .b {
    flex: 1;
    display: block;
    color: #fff;
    font-size: 1rem;
}

.tags .b {
    text-align: right;
}

.tags .a > span,
.tags .b > span {
    display: block;
    margin: 5px 2px;
    padding: 2px 6px;
    border-radius: 0;
    background: #7e0000;
    color: #fff;
    font-size: 1em;
    line-height: 1.8em;
}

.tags i {
    padding: 2px 3px;
}

.tags .salida {
    display: inline;
    padding: 0 4px;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font-weight: 700;
    line-height: 1em;
}

/* Elemento: franja destacado ------------------------------------------ */
.msg-dest {
    position: relative;
    width: 100%;
    background: #7e0000;
    color: rgba(255, 255, 0, .7);
    text-align: center;
    line-height: 1.7rem;
    text-transform: uppercase;
}

.msg-dest .texto {
    display: block;
    position: relative;
    font-weight: lighter;
}
