/* estudiaUTU.css — Estilos específicos del portal "Estudiá en UTU" */

/* =============================================================
   BASE
   ============================================================= */
body
{
    background: #f3f7fb;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================================
   SVG MAP — selectores complejos que Tailwind no puede expresar
   ============================================================= */
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap { max-width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .map-wrap { max-width: 520px; } }

.map-wrap text,
.map-wrap .dept-label,
.map-wrap [inkscape\:label*="label"],
.map-wrap .label
{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.map-wrap .area path
{
    stroke: rgba(255,255,255,0.55);
    stroke-width: 1.4;
    transition: fill .18s ease, filter .18s ease, stroke .18s ease, opacity .18s ease;
    cursor: pointer;
}

.map-wrap .area:hover path
{
    filter: brightness(1.18) drop-shadow(0 6px 14px rgba(0,0,0,.18));
    stroke: rgba(255,255,255,0.9);
    stroke-width: 1.8;
}

.map-wrap .area.is-selected path
{
    filter: brightness(1.28) drop-shadow(0 4px 16px rgba(0,0,0,.28));
    stroke: #fff;
    stroke-width: 2.2;
    animation: deptPulse .45s ease-out;
}

.map-wrap .area.is-dimmed path { opacity: 0.25; filter: saturate(0.2); }

@keyframes deptPulse
{
    0%   { filter: brightness(1.5) drop-shadow(0 0 18px rgba(255,255,255,.6)); }
    60%  { filter: brightness(1.35) drop-shadow(0 4px 18px rgba(0,0,0,.22)); }
    100% { filter: brightness(1.28) drop-shadow(0 4px 16px rgba(0,0,0,.28)); }
}

.map-wrap svg circle { display: none !important; }
.map-wrap svg ellipse.clickarea { display: none !important; pointer-events: none !important; }
.uyMap > g > rect { fill: transparent !important; }

/* =============================================================
   TOOLTIP — posicionado por JS
   ============================================================= */
#mapTooltip
{
    position: fixed;
    z-index: 999;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .12s ease;
    transform: translate(14px, -50%);
}
#mapTooltip.visible { opacity: 1; }

/* =============================================================
   PALETA REGIONAL — fills SVG (Tailwind no soporta fill en paths)
   ============================================================= */
.bg_litNorte      { fill: #e8365d !important; }
.bg_noreste       { fill: #7c4dff !important; }
.bg_este          { fill: #0097c7 !important; }
.bg_litSur        { fill: #00897b !important; }
.bg_metropolitana { fill: #f59e0b !important; }
.bg_centro        { fill: #5aad14 !important; }

/* =============================================================
   OVERLAY PANEL — transiciones de entrada/salida controladas por JS
   ============================================================= */
#overlayPanel
{
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .26s ease, transform .26s ease;
}
#overlayPanel.overlay-visible { opacity: 1; pointer-events: all; transform: translateY(0); }

#overlayLeft::-webkit-scrollbar { width: 4px; }
#overlayLeft::-webkit-scrollbar-track { background: transparent; }
#overlayLeft::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

#overlayContent { transition: opacity .16s ease, transform .16s ease; }
#overlayContent.content-fading { opacity: 0; transform: translateY(6px); }

/* =============================================================
   ANIMACIONES
   ============================================================= */
@keyframes cardEntrada { to { opacity: 1; transform: translateY(0); } }

@keyframes badgePulse
{
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,151,199,.4); }
    50%      { box-shadow: 0 0 0 7px rgba(0,151,199,0); }
}

.stat-card   { opacity: 0; transform: translateY(18px); animation: cardEntrada .5s ease forwards; }
.badge-pulse { animation: badgePulse 1.8s ease-in-out infinite; }

/* =============================================================
   FILTER CHIPS — usados dentro del overlay del mapa
   ============================================================= */
.filter-chip
{
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.filter-chip:hover  { border-color: #0097c7; color: #0097c7; background: #f0f9ff; }
.filter-chip.active { border-color: #0097c7; background: #0097c7; color: #fff; box-shadow: 0 2px 8px rgba(0,151,199,.25); }

.filter-scroll { display: flex; flex-wrap: wrap; gap: 6px; overflow-y: auto; padding: 4px 0; }
.filter-scroll::-webkit-scrollbar       { width: 3px; }
.filter-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* =============================================================
   BOTÓN "LLEVATE LA INFO"
   ============================================================= */
@keyframes btnCeluPulse
{
    0%, 100% { box-shadow: 0 2px 8px rgba(0,151,199,.3); }
    50%      { box-shadow: 0 4px 18px rgba(0,151,199,.5), 0 0 0 4px rgba(0,151,199,.1); }
}

.btn-celu
{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0097c7, #233368);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    animation: btnCeluPulse 2s ease-in-out infinite;
    width: fit-content;
}
.btn-celu:hover  { transform: translateY(-1px); filter: brightness(1.1); }
.btn-celu:active { transform: scale(.97); }
.btn-celu svg    { flex-shrink: 0; }

/* =============================================================
   MODAL COMPARTIR CURSO
   ============================================================= */
.qr-modal-backdrop
{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.qr-modal-backdrop.visible { opacity: 1; pointer-events: all; }

.qr-modal
{
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    width: min(580px, 92vw);
    overflow: hidden;
    transform: scale(.93) translateY(18px);
    transition: transform .3s ease;
    font-family: 'Montserrat', sans-serif;
}
.qr-modal-backdrop.visible .qr-modal { transform: scale(1) translateY(0); }

/* Header — solo botón cerrar */
.share-modal-header
{
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

/* Body: info del curso a todo ancho */
.share-modal-body
{
    padding: 20px 24px;
    max-height: 50vh;
    overflow-y: auto;
}
.share-modal-body::-webkit-scrollbar       { width: 3px; }
.share-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Footer: botones de compartir */
.share-modal-footer
{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.qr-modal-close
{
    position: relative;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all .15s ease;
    flex-shrink: 0;
}
.qr-modal-close:hover { background: #e2e8f0; color: #334155; }

/* Detalle del curso */
.qr-modal-detalle
{
    text-align: left;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 12px;
    color: #334155;
    line-height: 1.85;
    white-space: pre-line;
    font-family: 'Montserrat', sans-serif;
}
.qr-modal-detalle strong { color: #0369a1; font-weight: 700; }
.qr-modal-detalle a      { color: #0097c7; text-decoration: underline; }
.qr-modal-detalle a:hover { color: #0077a3; }

/* =============================================================
   LISTA DE CENTROS EDUCATIVOS (overlay mapa)
   ============================================================= */
.centro-item
{
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all .18s ease;
    position: relative;
}
.centro-item:hover { border-color: #0097c7; background: #f0f9ff; }
.centro-item.active
{
    border-color: #0097c7;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    box-shadow: 0 4px 12px rgba(0,151,199,.15);
}
.centro-item.active::after
{
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #0097c7;
}
.centro-item h4
{
    font-size: 13px;
    font-weight: 700;
    color: #0097c7;
    margin: 0 0 4px;
    line-height: 1.3;
}
.centro-item .centro-badge
{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #0097c7;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 6px;
}

#cursosDetalle::-webkit-scrollbar       { width: 4px; }
#cursosDetalle::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#centrosLista::-webkit-scrollbar        { width: 4px; }
#centrosLista::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 4px; }

/* =============================================================
   BOTONES COMPARTIR — Modal de compartir curso
   ============================================================= */
.share-btn
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: all .2s ease;
    white-space: nowrap;
}
.share-btn:hover  { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn:active { transform: scale(.97); }
.share-btn svg    { flex-shrink: 0; }

.share-btn-wa    { background: #1db954; }
.share-btn-email { background: #0097c7; }

/* =============================================================
   HERO BANNER — Estudiá en UTU
   ============================================================= */
.estudia-hero
{
    position: relative;
    width: 100%;
    min-height: 260px;
    background: linear-gradient(120deg, #004d6b 0%, #0077c8 50%, #1a3268 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Foto de fondo con overlay */
.estudia-hero::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/estudia/DSC08851.jpeg') center/cover no-repeat;
    opacity: 0.18;
    mix-blend-mode: luminosity;
}

/* Overlay de profundidad */
.estudia-hero::after
{
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,55,120,.55) 0%, transparent 70%),
        linear-gradient(to top,   rgba(0,30,70,.4)   0%, transparent 60%);
}

.estudia-hero-content
{
    position: relative;
    z-index: 1;
    padding: 52px 5%;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}

/* =============================================================
   MAP HINT — cartelito flotante sobre el mapa
   ============================================================= */
.map-hint
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0097c7, #0077a3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 6px 14px 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,151,199,.35);
    letter-spacing: 0.2px;
    animation: hintBounce 2.4s ease-in-out infinite;
}
.map-hint svg { flex-shrink: 0; }

@keyframes hintBounce
{
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

/* =============================================================
   SELECTORES DE BÚSQUEDA
   ============================================================= */
.estudia-select
{
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230097c7' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 30px 8px 11px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #475569;
    cursor: pointer;
    width: 100%;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.estudia-select:hover,
.estudia-select:focus
{
    border-color: #0097c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,151,199,.12);
}
.estudia-select:disabled { opacity: 0.5; cursor: not-allowed; }

.estudia-input
{
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #334155;
    width: 100%;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.estudia-input::placeholder { color: #94a3b8; font-weight: 400; }
.estudia-input:hover,
.estudia-input:focus
{
    border-color: #0097c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,151,199,.12);
}

/* Inputs dentro de un wrapper con ícono: compensar el padding izquierdo */
.relative > .estudia-input { padding-left: 2rem; }

