/* Estilos del croquis y plano cartesiano — encapsulados en .cro-v2 */

.cro-v2 .cro-hero {
    position: relative;
    height: 390px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Degradado suave para no tapar la fotografía de fondo */
.cro-v2 .cro-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(95deg, rgba(61, 14, 24, 0.72) 0%, rgba(142, 27, 43, 0.42) 58%, rgba(194, 126, 36, 0.16) 100%);
}

.cro-v2 .cro-hero .hero-welcome-content {
    position: relative;
    z-index: 2;
}

.cro-v2 .cro-hero .hero-title {
    font-size: 4em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.cro-v2 .cro-hero .hero-subtitle,
.cro-v2 .cro-hero .hero-desc {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.cro-v2 .cro-hero .hero-desc { max-width: 620px; }

.cro-v2 .cro-seccion { padding: 55px 45px; }
.cro-v2 .cro-seccion.alt-bg { background: #fff8f9; }

.cro-v2 .cro-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--azul);
    background: #ffe4e9;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.cro-v2 .cro-intro {
    font-size: 1.06em;
    line-height: 1.75;
    max-width: 860px;
    margin: -6px 0 24px;
    color: #334155;
}

/* ---------- Rollos de Nuestro recorrido (estilo filmstrip en paleta guinda/dorado) ---------- */
.cro-v2 .cro-rollo-wrap {
    background: #3b0d19;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #7a1c30;
    box-shadow: 0 12px 28px rgba(107, 29, 47, 0.16);
}

.cro-v2 .cro-perfs {
    display: flex;
    background: #280810;
    padding: 6px 10px;
    overflow: hidden;
}

.cro-v2 .cro-perfs span {
    width: 26px;
    height: 15px;
    border-radius: 3px;
    background: #fae9d2;
    opacity: 0.85;
    flex-shrink: 0;
    margin: 0 6px;
}

.cro-v2 .cro-rollo-ventana {
    overflow: hidden;
    padding: 16px 0;
}

.cro-v2 .cro-rollo-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 0 18px;
    will-change: transform;
}

.cro-v2 .cro-rollo-foto {
    width: 250px;
    flex-shrink: 0;
    background: #531323;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(245, 201, 122, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cro-v2 .cro-rollo-foto:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #f5c97a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.cro-v2 .cro-rollo-img {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #6b1d2f;
}

.cro-v2 .cro-rollo-pie {
    padding: 12px 14px 15px;
    color: #fff8ee;
}

.cro-v2 .cro-rollo-idx {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: #f5c97a;
    font-weight: 700;
}

.cro-v2 .cro-rollo-pie h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin: 2px 0 6px;
    letter-spacing: 0.02em;
}

.cro-v2 .cro-rollo-pie p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 248, 238, 0.82);
    margin: 0;
}

/* ---------- Croquis con capas, luces y zonas de riesgo ---------- */
.cro-v2 .cro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.92fr);
    gap: 22px;
    align-items: start;
}

.cro-v2 .cro-card,
.cro-v2 .cro-capas-card,
.cro-v2 .cro-plano-panel,
.cro-v2 .cro-ficha-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 2px solid #f3c6cf;
    box-shadow: 0 10px 26px rgba(142, 27, 43, 0.08);
}

.cro-v2 .cro-mapa {
    position: relative;
    width: 100%;
    min-height: 340px;
    border-radius: 14px;
    overflow: hidden;
    background: #3b0d19;
}

.cro-v2 .cro-mapa > img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.35s ease;
}

.cro-v2 .cro-mapa.modo-noche > img { filter: brightness(0.22) contrast(1.14); }
.cro-v2 .cro-mapa.luces-apagadas > img { filter: brightness(0.45) contrast(1.08); }

.cro-v2 .cro-luz-capa {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cro-v2 .cro-mapa.modo-noche:not(.luces-apagadas) .cro-luz-capa { opacity: 1; }

.cro-v2 .cro-luz-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: var(--mascara-focos);
    mask-image: var(--mascara-focos);
    filter: brightness(var(--brillo-lux, 1.22)) saturate(1.1);
}

.cro-v2 .cro-foco {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fef9c3;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 10px 4px rgba(254, 240, 138, 0.95), 0 0 22px 9px rgba(245, 158, 11, 0.85);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.cro-v2 .cro-foco.visible { opacity: 1; }

/* Capa de zonas y puntos de riesgo (oculta por defecto) */
.cro-v2 .cro-capa-zonas {
    display: none;
}

.cro-v2 .cro-capa-zonas.visible {
    display: block;
}

.cro-v2 .cro-zona-azul {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(56, 189, 248, 0.85);
    background: rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    cursor: pointer;
    z-index: 6;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cro-v2 .cro-zona-azul:hover {
    background: rgba(37, 99, 235, 0.42);
    border-color: #ffffff;
}

.cro-v2 .cro-zona-azul.active {
    background: rgba(2, 132, 199, 0.48);
    border-color: #f5c97a;
    box-shadow: 0 0 0 3px rgba(245, 201, 122, 0.45);
}

.cro-v2 .z-edificio6 { left: 21% !important; top: 45% !important; width: 29% !important; height: 12% !important; }
.cro-v2 .z-edificio7 { left: 21% !important; top: 62% !important; width: 29% !important; height: 12% !important; }
.cro-v2 .z-edificio8 { left: 3.5% !important; top: 75% !important; width: 7% !important; height: 22% !important; }
.cro-v2 .z-cancha { left: 59% !important; top: 65% !important; width: 23% !important; height: 27% !important; }
.cro-v2 .z-estacionamiento { left: 22% !important; top: 86% !important; width: 34% !important; height: 9% !important; }
.cro-v2 .z-banos { left: 39% !important; top: 29% !important; width: 25% !important; height: 18% !important; }

.cro-v2 .cro-marcador-r {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cro-v2 .cro-marcador-r:hover {
    transform: translate(-50%, -50%) scale(1.14);
}

.cro-v2 .cro-marcador-r.active {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 0 4px #f5c97a, 0 4px 12px rgba(0, 0, 0, 0.45);
}

.cro-v2 .cro-capa {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 7;
}

.cro-v2 .cro-capa.visible { opacity: 1; }

.cro-v2 .cro-capa.pin {
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cro-v2 .cat-extintor { background: #be123c; }
.cro-v2 .cat-salida { background: #6d28d9; }
.cro-v2 .cat-sismo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.35);
    border: 2px dashed #0f766e;
    color: #042f2e;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 3px;
}

.cro-v2 .cro-mapa-leyenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3b0d19;
}

.cro-v2 .cro-mapa-leyenda span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cro-v2 .cro-box-leyenda {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.24);
    border: 2px solid #2563eb;
    display: inline-block;
}

.cro-v2 .cro-dot-leyenda {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #dc2626;
    display: inline-block;
}

.cro-v2 .cro-capas-card h3 {
    margin: 0 0 6px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--azul);
}

.cro-v2 .cro-capas-card > p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #64748b;
}

.cro-v2 .cro-layer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1.5px solid #f1d0d8;
    background: #fff9fa;
    color: #3b0d19;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cro-v2 .cro-layer-btn:hover { background: #ffe4e9; }
.cro-v2 .cro-layer-btn.active {
    background: var(--azul);
    border-color: var(--azul);
    color: #ffffff;
}

.cro-v2 .cro-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.cro-v2 .cro-luz-box {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 14px;
    padding: 12px;
    display: none;
}

.cro-v2 .cro-luz-box.visible { display: block; }

.cro-v2 .cro-toggle-row {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 12px;
}

.cro-v2 .cro-switch {
    width: 50px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: #d97706;
    padding: 3px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
}

.cro-v2 .cro-switch.off {
    background: #cbd5e1;
    justify-content: flex-start;
}

.cro-v2 .cro-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
}

.cro-v2 .cro-lux-lbl {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
}

.cro-v2 .cro-lux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.cro-v2 .cro-lux-btn {
    background: #ffffff;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 8px 4px;
    color: #78350f;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.cro-v2 .cro-lux-btn.active {
    background: #b45309;
    border-color: #b45309;
    color: #ffffff;
}

/* Ficha de zona / marcador R1-R4 */
.cro-v2 .cro-zona-detalle {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1.5px solid #f3c6cf;
}

.cro-v2 .cro-zona-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.cro-v2 .cro-zona-titulo {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul);
}

.cro-v2 .cro-zona-ubica {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.cro-v2 .cro-zona-foto {
    border-radius: 12px;
    overflow: hidden;
    background: #fff1f3;
    border: 1.5px solid #f3c6cf;
    margin-bottom: 10px;
    min-height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cro-v2 .cro-zona-foto img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
}

.cro-v2 .cro-zona-desc {
    margin: 0 0 10px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #334155;
}

.cro-v2 .cro-sub-bloque {
    background: #fff8f9;
    border: 1px solid #f3c6cf;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 8px;
}

.cro-v2 .cro-sub-bloque h5 {
    margin: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b1d2f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cro-v2 .cro-sub-bloque ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.45;
}

.cro-v2 .cro-sub-bloque li {
    margin-bottom: 3px;
}

/* ---------- Filtros y Plano Cartesiano ---------- */
.cro-v2 .cro-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #f3c6cf;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 22px;
}

.cro-v2 .cro-filtros-lbl {
    font-weight: 700;
    font-size: 0.92rem;
    color: #3b0d19;
}

.cro-v2 .cro-filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cro-v2 .cro-filtro-btn.active {
    background: var(--azul);
    border-color: var(--azul);
    color: #ffffff;
}

.cro-v2 .cro-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.cro-v2 .cro-mini-dot.alto { background: #e11d48; }
.cro-v2 .cro-mini-dot.medio { background: #d97706; }
.cro-v2 .cro-mini-dot.bajo { background: #0d9488; }

.cro-v2 .cro-filtro-btn.f-alto:not(.active) { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.cro-v2 .cro-filtro-btn.f-medio:not(.active) { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.cro-v2 .cro-filtro-btn.f-bajo:not(.active) { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }

.cro-v2 .cro-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.cro-v2 .cro-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.cro-v2 .cro-pt { cursor: pointer; transition: opacity 0.2s ease; }
.cro-v2 .cro-pt:hover { transform: scale(1.03); transform-box: fill-box; transform-origin: center; }

.cro-v2 .cro-pt-ring {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 3;
    opacity: 0;
}

.cro-v2 .cro-pt.activo .cro-pt-ring { opacity: 1; }

.cro-v2 .cro-ficha-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cro-v2 .cro-ficha-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.cro-v2 .cro-coord-pill {
    background: #3b0d19;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
}

.cro-v2 .cro-urg-pill {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
}

.cro-v2 .cro-urg-pill.alto { background: #ffe4e6; color: #be123c; }
.cro-v2 .cro-urg-pill.medio { background: #fef3c7; color: #b45309; }
.cro-v2 .cro-urg-pill.bajo { background: #ccfbf1; color: #0f766e; }

.cro-v2 .cro-ficha-titulo {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--azul);
}

.cro-v2 .cro-ficha-desc {
    margin: 0 0 14px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #334155;
}

.cro-v2 .cro-foto-box {
    border-radius: 14px;
    overflow: hidden;
    background: #fff1f3;
    border: 1.5px solid #f3c6cf;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cro-v2 .cro-foto-box img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.cro-v2 .cro-foto-fallback {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px;
    text-align: center;
    color: #6b1d2f;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .cro-v2 .cro-grid,
    .cro-v2 .cro-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cro-v2 .cro-seccion,
    .cro-v2 .cro-seccion.alt-bg { padding: 40px 18px; }
    .cro-v2 .cro-hero { height: 340px; }
    .cro-v2 .cro-hero .hero-title { font-size: 2.6em; }
    .cro-v2 .cro-rollo-foto { width: 210px; }
}