/* "Uruguay es nuestro lugar" -- mapa interactivo (03/10/2026) */

.uyx { position: relative; }
.uyx [hidden] { display: none !important; }
.uyx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.uyx-copy h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 14px 0 18px; }
.uyx-copy h2 span { color: var(--color-accent, #1EA7E4); }
.uyx-lead { color: var(--text-secondary, #C3CBDA); font-size: 18px; line-height: 1.6; max-width: 520px; margin: 0 0 26px; }

.uyx-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.uyx-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.uyx-btn-primario { background: linear-gradient(135deg, #38C4F2, #1EA7E4); color: #0F172A; border: 0; }
.uyx-btn-secundario { background: transparent; color: var(--text-primary, #E5E9F0); border: 1px solid rgba(30, 167, 228, .45); }
.uyx-btn:hover { transform: translateY(-2px); }
.uyx-btn-secundario:hover, .uyx-btn-secundario[aria-expanded="true"] { border-color: #38C4F2; }
.uyx-btn:focus-visible, .uyx-volver:focus-visible, .uyx-lista button:focus-visible, .uyx-chips a:focus-visible {
    outline: 2px solid #38C4F2; outline-offset: 3px;
}

.uyx-preview {
    margin-top: 22px; padding: 16px 18px; max-width: 460px;
    border: 1px solid rgba(30, 167, 228, .35); border-radius: 14px;
    background: rgba(15, 23, 42, .55);
    display: grid; gap: 6px;
    animation: uyxAparecer .2s ease;
}
.uyx-preview-nombre { font-size: 13px; letter-spacing: .18em; color: #38C4F2; }
.uyx-preview > span { font-size: 15px; color: var(--text-secondary, #C3CBDA); }

.uyx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.uyx-chips a, .uyx-chips span {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
    border: 1px solid rgba(30, 167, 228, .4); color: var(--text-primary, #E5E9F0); text-decoration: none;
    background: rgba(30, 167, 228, .06);
}
.uyx-chips a:hover { border-color: #38C4F2; background: rgba(30, 167, 228, .14); }
.uyx-chips--muted { margin: 6px 0 0; }
.uyx-chips--muted span { font-size: 12px; padding: 6px 11px; }

.uyx-volver {
    background: none; border: 0; padding: 0; margin-bottom: 14px; cursor: pointer;
    color: var(--text-muted, #9AA5B8); font: inherit; font-size: 14px; font-weight: 700;
}
.uyx-volver:hover { color: #38C4F2; }
.uyx-depto-nombre { letter-spacing: .04em; outline: none; }
.uyx-conteo { color: var(--text-muted, #9AA5B8); font-size: 14px; margin: -12px 0 14px; }
.uyx-vista[data-vista="departamento"]:not([hidden]) { animation: uyxAparecer .25s ease; }

.uyx-lista { margin-top: 22px; }
.uyx-lista ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.uyx-lista button {
    width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; cursor: pointer;
    font: inherit; font-size: 14px; color: var(--text-secondary, #C3CBDA);
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06);
}
.uyx-lista button:hover, .uyx-lista button[aria-pressed="true"] { color: #38C4F2; border-color: rgba(30, 167, 228, .5); }

/* Mapa (sin marco: la pieza flota sobre el fondo de la sección) */
.uyx-mapa {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: center;
    aspect-ratio: 1 / 1.02;
}
.uyx-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.uyx-cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted, #5B6B82); font-size: 14px; }

.uyx-svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 2%; box-sizing: border-box; overflow: visible; }
.uyx-svg-poly { fill: #102846; stroke: #38C4F2; stroke-width: .8; stroke-opacity: .7; transition: fill .2s ease, stroke-opacity .2s ease; }
.uyx-svg-poly--disputado { fill-opacity: .55; stroke-dasharray: 3 2; }
.uyx-svg-depto { cursor: pointer; outline: none; }
.uyx-svg-depto.is-atenuado .uyx-svg-poly { fill: #0B1C33; stroke-opacity: .4; }
.uyx-svg-depto.is-activo .uyx-svg-poly { fill: #17406B; stroke: #7FD8F7; stroke-opacity: 1; stroke-width: 1.4; }
.uyx-svg-depto:focus-visible .uyx-svg-poly { stroke: #FFFFFF; stroke-opacity: 1; stroke-width: 1.6; }
.uyx-svg-nodo { fill: #38C4F2; opacity: .85; pointer-events: none; transition: opacity .2s ease; }
.uyx-svg-nodo.is-activo { opacity: 1; filter: drop-shadow(0 0 6px rgba(56, 196, 242, .9)); }

/* Sección un poco más compacta */
.explore-uy-section.uyx { padding: 56px 0; }
.uyx-copy h2 { font-size: clamp(30px, 3.4vw, 44px); }

/* Modo claro (por defecto) */
html[data-theme="light"] .uyx-copy h2 { color: #0B1F3A; }
html[data-theme="light"] .uyx-copy h2 span, html[data-theme="light"] .uyx-preview-nombre { color: #0B73AD; }
html[data-theme="light"] .uyx-preview { background: #FFFFFF; border-color: #CFE6F5; box-shadow: 0 10px 30px rgba(11, 31, 58, .06); }
html[data-theme="light"] .uyx-btn-secundario { color: #0B1F3A; background: #FFFFFF; border-color: #CFE6F5; }
html[data-theme="light"] .uyx-btn-secundario:hover, html[data-theme="light"] .uyx-btn-secundario[aria-expanded="true"] { border-color: #1EA7E4; }
html[data-theme="light"] .uyx-chips a, html[data-theme="light"] .uyx-chips span { color: #0B1F3A; background: #EEF7FD; border-color: #CFE6F5; }
html[data-theme="light"] .uyx-chips a:hover { border-color: #1EA7E4; background: #E0F2FC; }
html[data-theme="light"] .uyx-volver:hover, html[data-theme="light"] .uyx-lista button:hover, html[data-theme="light"] .uyx-lista button[aria-pressed="true"] { color: #0B73AD; }
html[data-theme="light"] .uyx-lista button { color: #334862; background: #fff; border-color: #DCE7F1; }
html[data-theme="light"] .uyx-lista button[aria-pressed="true"], html[data-theme="light"] .uyx-lista button:hover { border-color: #1EA7E4; }
html[data-theme="light"] .uyx-svg-poly { fill: #EAF5FC; stroke: #38B6EC; stroke-opacity: .9; }
html[data-theme="light"] .uyx-svg-depto.is-atenuado .uyx-svg-poly { fill: #F4F9FD; stroke-opacity: .5; }
html[data-theme="light"] .uyx-svg-depto.is-activo .uyx-svg-poly { fill: #BFE6F8; stroke: #0E8FD8; }
html[data-theme="light"] .uyx-svg-depto:focus-visible .uyx-svg-poly { stroke: #0B1F3A; }
html[data-theme="light"] .uyx-svg-nodo { fill: #1EA7E4; }

@keyframes uyxAparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
    .uyx-grid { grid-template-columns: 1fr; gap: 28px; }
    .uyx-mapa { order: -1; max-width: 420px; }
    .explore-uy-section.uyx { padding: 40px 0; }
    .uyx-lista ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uyx-lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .uyx-btn, .uyx-preview, .uyx-vista, .uyx-svg-poly, .uyx-svg-nodo { transition: none !important; animation: none !important; }
}

/* 04/10/2026: textos y botones más grandes, sin flechas */
.uyx .signature-kicker { font-size: 13px; letter-spacing: .24em; margin-bottom: 4px; }
.uyx-copy h2 { font-size: clamp(38px, 4.4vw, 60px); margin: 16px 0 20px; }
.uyx-lead { font-size: 20px; max-width: 600px; margin-bottom: 30px; }
.uyx-ctas { gap: 14px; }
.uyx-btn { padding: 17px 30px; border-radius: 14px; font-size: 17px; }
.uyx-chips { gap: 10px; margin: 8px 0 26px; }
.uyx-chips a { padding: 11px 20px; font-size: 16px; }
.uyx-conteo { font-size: 16px; margin: -14px 0 18px; }
.uyx-volver {
    margin-bottom: 18px; padding: 9px 18px; font-size: 15px;
    border: 1px solid rgba(30, 167, 228, .4); border-radius: 999px;
}
html[data-theme="light"] .uyx-volver { color: #334862; background: #FFFFFF; border-color: #CFE6F5; }
html[data-theme="light"] .uyx-volver:hover { border-color: #1EA7E4; }
.uyx-preview { max-width: 520px; padding: 18px 20px; }
.uyx-preview-nombre { font-size: 14px; }
.uyx-preview > span { font-size: 16px; }
@media (max-width: 899px) {
    .uyx-copy h2 { font-size: clamp(32px, 8.5vw, 44px); }
    .uyx-lead { font-size: 17px; }
    .uyx-btn { padding: 15px 24px; font-size: 16px; }
    .uyx-chips a { font-size: 15px; padding: 10px 16px; }
}

/* 04/10/2026: mapa más grande */
.uyx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.uyx-mapa { max-width: 680px; }
@media (max-width: 899px) {
    .uyx-grid { grid-template-columns: 1fr; }
    .uyx-mapa { max-width: 520px; }
}
