/* =========================
   BASE
   ========================= */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

textarea {
    resize: none;
}

/* =========================
   FOOTER
   ========================= */
footer {
    height: 25vh;
    background-color: #343a40;
    color: white;
    text-align: center;
    padding-left: 2%;
    padding-right: 4%;
}

/* =========================
   NAVBAR
   ========================= */
.barra-nav {
    background-color: #bfff5c;
}

/* =========================
   CONTENIDO PRINCIPAL
   ========================= */
.contenedor {
    flex: 1 1 auto;
    height: 78vh;
    overflow-y: auto;
    overflow-x: auto;
    padding: 1rem;
}

/* Padding amplio solo en desktop */
@media (min-width: 992px) {
    .contenedor {
        padding: 2% 10%;
    }
}

/* =========================
   LOADER
   ========================= */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* =========================
   CAROUSEL
   ========================= */
.carousel-bg {
    background-color: #6c757d;
}

.carousel-contenedor {
    max-width: 500px;
    margin: auto;
}

.carousel-img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
}

/* =========================
   LEYENDAS
   ========================= */
.leyendas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.leyenda {
    text-align: center;
    width: 100px;
    font-size: 0.85rem;
}

.tipo-1,
.tipo-2,
.tipo-3 {
    width: 100%;
    height: 36px;
    border: 1px solid black;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.tipo-1 {
    background-color: yellow;
    color: black;
}

.tipo-2 {
    background-color: limegreen;
    color: black;
}

.tipo-3 {
    background-color: purple;
    color: white;
}

/* =========================
   TEXTO
   ========================= */
.texto {
    margin: 2% 0;
    text-align: justify;
}

.info {
    margin: 1% 0;
    text-align: justify;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .info {
        font-size: 1rem;
    }
}

/* =========================
   IMAGEN / ZOOM
   ========================= */
.contenedor-img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    margin: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contenedor-img.ampliado {
    cursor: zoom-out;
}

.imagen {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.2s ease;
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
}

/* =========================
   STEPPER
   ========================= */

.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.4rem 0;
}

.line {
    width: 25%;
    height: 6px;
    background: gray;
}

.line.completed {
    background: #198754;
}

.step {
    display: flex;
    background-color: gray;
    color: #fff;
    font-size: 14px;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: default;
}

.step.active {
    background-color: #0d6efd;
}

.step.completed {
    background-color: #198754;
    cursor: pointer;
}

/* =========================
   VARIOS
   ========================= */
.rango {
    width: 30%;
}

.btn {
    margin: 2px;
}

.oculto {
    visibility: hidden;
}

.prevista {
    display: block;
    margin: auto;
    width: 50%;
    height: auto;
}

.fila {
    padding: 5px 2px;
}

.mapa {
    height: 150px;
}

.registro {
    cursor: pointer;
}

/* =========================
   COINCIDENCIAS
   ========================= */
.coincidencia-0 {
    background-color: #ff3722;
    color: white;
}

.coincidencia-1 {
    background-color: #ff8a29;
    color: black;
}

.coincidencia-2 {
    background-color: #ffce00;
    color: black;
}

.coincidencia-3 {
    background-color: #73cf11;
    color: black;
}

.coincidencia-4 {
    background-color: #00b67a;
    color: black;
}