/*
========================================================

PIIMEP Participa

Archivo:
style.css

Descripción:
Estilos generales de la plataforma ciudadana
de participación y priorización de proyectos PIIMEP.

========================================================
*/


/* ======================================
VARIABLES
====================================== */

:root{

    --azul-principal:#005A9C;

    --azul-oscuro:#003B6D;

    --verde-votar:#2E7D32;

    --gris-fondo:#F5F7FA;

    --gris-borde:#E0E0E0;

    --texto:#333333;

    --blanco:#FFFFFF;

}



/* ======================================
RESET GENERAL
====================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}



html{

    scroll-behavior:smooth;

}



body{

    font-family:'Inter', sans-serif;

    background:var(--gris-fondo);

    color:var(--texto);

    min-height:100vh;

}



img{

    max-width:100%;

}



button,
input,
select{

    font-family:inherit;

}



/* ======================================
ELEMENTOS OCULTOS
====================================== */

.oculto{

    display:none !important;

}



/* ======================================================
PANTALLA INFORMATIVA
====================================================== */

#pantalla-informativa{

    min-height:100vh;

    background:var(--gris-fondo);

}

/* ======================================
HERO
====================================== */

.hero {

    min-height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;

    text-align: center;

    background:
    linear-gradient(
        rgba(0, 59, 109, 0.78),
        rgba(0, 59, 109, 0.78)
    ),
    url("../asstes/image/FOTOBANNER.jpeg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    color: white;

}



.hero-contenido{

    width:100%;

    max-width:800px;

}



.hero .logo-municipal{
    margin-bottom:25px;
}

.hero .logo-municipal img{
    width:140px;
    height:auto;
    object-fit:contain;
}



.hero h1{

    font-size:46px;

    margin-bottom:20px;

    font-weight:700;

}



.hero-subtitulo{

    max-width:650px;

    margin:0 auto;

    font-size:20px;

    line-height:1.6;

    font-weight:300;

}



/* ======================================
CONTENIDO INFORMATIVO
====================================== */

.contenido-informativo{

    width:100%;

    max-width:1100px;

    margin:0 auto;

    padding:70px 25px 120px;

}



.bloque-informativo{

    background:white;

    padding:45px;

    border-radius:20px;

    margin-bottom:35px;

    box-shadow:

        0 5px 20px rgba(0,0,0,.06);

}



.bloque-informativo h2{

    color:var(--azul-oscuro);

    font-size:30px;

    line-height:1.3;

    margin-bottom:25px;

}



.bloque-informativo p{

    font-size:17px;

    line-height:1.8;

    margin-bottom:20px;

}



.bloque-informativo p:last-child{

    margin-bottom:0;

}



/* ======================================
TARJETAS DE INICIATIVAS
====================================== */

.tarjetas-iniciativas{

    display:grid;

    grid-template-columns:

        repeat(2,1fr);

    gap:25px;

    margin-top:35px;

}



.tarjeta-iniciativa{

    border:1px solid var(--gris-borde);

    border-radius:16px;

    padding:30px;

    background:#fafbfc;

}



.icono-iniciativa{

    font-size:38px;

    margin-bottom:15px;

}



.tarjeta-iniciativa h3{

    color:var(--azul-oscuro);

    font-size:21px;

    margin-bottom:15px;

}



.tarjeta-iniciativa p{

    font-size:15px;

    line-height:1.7;

}



/* ======================================
CONSULTA PÚBLICA
====================================== */

.consulta-publica{

    background:

        linear-gradient(

            135deg,

            #eef6fb,

            #ffffff

        );

}



.consulta-publica h2{

    color:var(--azul-principal);

}



.mensaje-final{

    color:var(--verde-votar);

    font-size:21px !important;

    font-weight:700;

    margin-top:30px;

}



/* ======================================================
SECCIÓN PARTICIPAR
====================================================== */

.seccion-participar{

    min-height:600px;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:70px 20px;

    scroll-margin-top:20px;

    background:

        linear-gradient(

            135deg,

            var(--azul-oscuro),

            var(--azul-principal)

        );

    border-radius:25px;

}



/* ======================================
TARJETA DE INGRESO
====================================== */

.tarjeta-ingreso{

    background:var(--blanco);

    width:100%;

    max-width:500px;

    padding:45px;

    border-radius:20px;

    box-shadow:

        0 15px 40px rgba(0,0,0,.2);

}



.tarjeta-ingreso .logo-municipal{
    text-align:center;
    margin-bottom:20px;
}

.tarjeta-ingreso .logo-municipal img{
    width:100px;
    height:auto;
    object-fit:contain;
}



.tarjeta-ingreso h2{

    text-align:center;

    color:var(--azul-oscuro);

    font-size:27px;

    margin-bottom:12px;

}



.subtitulo{

    text-align:center;

    color:#666;

    line-height:1.6;

    margin-bottom:30px;

}



/* ======================================
FORMULARIO
====================================== */

#formulario-ingreso{

    display:flex;

    flex-direction:column;

    gap:10px;

}



#formulario-ingreso label{

    font-size:14px;

    font-weight:600;

    margin-top:10px;

}



#formulario-ingreso input{

    padding:14px;

    border-radius:10px;

    border:1px solid var(--gris-borde);

    font-size:15px;

    background:white;

}



#formulario-ingreso input:focus{

    outline:none;

    border-color:var(--azul-principal);

    box-shadow:

        0 0 0 3px

        rgba(0,90,156,.12);

}



#formulario-ingreso button{

    margin-top:20px;

    padding:15px;

    border:none;

    border-radius:10px;

    background:var(--azul-principal);

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}



#formulario-ingreso button:hover{

    background:var(--azul-oscuro);

}



/* ======================================================
BOTÓN FLOTANTE INGRESAR
====================================================== */

#boton-ingresar{

    position:fixed;

    z-index:5000;

    bottom:25px;

    left:50%;

    transform:translateX(-50%);

    padding:14px 24px;

    border:none;

    border-radius:50px;

    background:var(--azul-principal);

    color:white;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    box-shadow:

        0 6px 20px rgba(0,0,0,.25);

    transition:

        transform .2s,

        background .2s;

}



#boton-ingresar:hover{

    background:var(--azul-oscuro);

    transform:

        translateX(-50%)

        translateY(-2px);

}



#boton-ingresar span{

    margin-left:8px;

    font-size:18px;

}


/* ======================================================
   APLICACIÓN PRINCIPAL
   ====================================================== */

#aplicacion {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ======================================================
   HEADER
   ====================================================== */

#header {
    flex: 0 0 auto;
    min-height: 48px;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    position: relative;

    padding: 4px 10px;
    gap: 8px;

    background: white;
    border-bottom: 1px solid var(--gris-borde);
}
/* ======================================
   LOGO + TÍTULO
   ====================================== */

.titulo-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-piimep-app {
    display: block;
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
    object-fit: contain;
    flex-shrink: 0;
}

/* ======================================
   ACCIONES DEL HEADER
====================================== */

.acciones-header{

    margin-left:auto;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:2px;

}


/* ======================================
   BOTÓN VOLVER AL INICIO
====================================== */

#boton-volver-inicio{

    padding:9px 16px;

    border:1px solid var(--azul-principal);

    border-radius:8px;

    background:white;

    color:var(--azul-principal);

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:
        background .2s,
        color .2s,
        transform .2s;

}


#boton-volver-inicio:hover{

    background:var(--azul-principal);

    color:white;

    transform:translateY(-1px);

}


/* ======================================
   USUARIO / DIRECCIÓN
====================================== */

#usuario-activo{

    font-size:14px;

    color:#777;

    white-space:nowrap;

}

/* ======================================================
   CONTENEDOR PRINCIPAL
   ====================================================== */

#contenedor {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    min-height: 0;

    position: relative;
    overflow: hidden;
}


/* ======================================================
   PANEL
   ====================================================== */

#panel {
    order: 0;
    flex: 0 0 350px;
    width: 350px;
    min-width: 0;

    box-sizing: border-box;

    background: white;
    border-right: 1px solid var(--gris-borde);
    border-bottom: none;

    overflow-y: auto;
    padding: 25px;
    text-align: center;
}
/* ======================================================
   MAPA
   ====================================================== */

#mapa {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;

    position: relative;
    isolation: isolate;
}



/* ======================================================
DETALLE PROYECTO
====================================================== */

#detalle-proyecto{

    position:absolute;

    z-index:1000;

    top:20px;

    left:20px;

    width:360px;

    max-width:calc(100% - 40px);

    background:white;

    padding:24px;

    border-radius:16px;

    border:1px solid rgba(0,0,0,.08);

    box-shadow:

        0 12px 35px rgba(0,0,0,.22);

    overflow:hidden;

}


/* ======================================
   CÓDIGO PIIMEP
====================================== */

.detalle-codigo{

    font-size:13px;

    font-weight:800;

    letter-spacing:.8px;

    margin-bottom:7px;

    padding-right:25px;

}


/* ======================================
   NOMBRE
====================================== */

#detalle-proyecto h2{

    color:var(--azul-oscuro);

    font-size:21px;

    line-height:1.3;

    margin:0 30px 10px 0;

}


/* ======================================
   CATEGORÍA
====================================== */

.detalle-categoria{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:20px;

    font-size:13px;

    font-weight:700;

    color:#555;

}


.detalle-indicador-categoria{

    width:11px;

    height:11px;

    border-radius:50%;

    display:block;

    flex-shrink:0;

    box-shadow:

        0 0 0 2px rgba(0,0,0,.08);

}


/* ======================================
   DATOS DEL PROYECTO
====================================== */

.detalle-datos{

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:14px 0;

    border-top:1px solid var(--gris-borde);

    border-bottom:1px solid var(--gris-borde);

}


.detalle-dato{

    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    gap:15px;

    font-size:13px;

    line-height:1.4;

}


.detalle-label {
    color: #777;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .4px;
}


.detalle-dato strong{

    color:var(--texto);

    text-align:right;

    max-width:65%;

    font-size:13px;

}


/* ======================================
   DESCRIPCIÓN
====================================== */

.detalle-descripcion{

    margin-top:17px;

}


.detalle-descripcion p{

    margin:7px 0 0;

    color:#555;

    font-size:13px;

    line-height:1.6;

}


/* ======================================
   PARTICIPACIÓN
====================================== */

.detalle-votos{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-top:18px;

    padding:12px 14px;

    background:#F5F7FA;

    border-radius:10px;

    font-size:13px;

}


.detalle-votos span{

    color:#666;

    font-weight:600;

}


.detalle-votos strong{

    color:var(--azul-oscuro);

    font-size:15px;

}


/* ======================================
   BOTÓN VOTAR
====================================== */

.boton-votar{

    width:100%;

    padding:13px 15px;

    margin-top:15px;

    border:none;

    border-radius:10px;

    color:#222;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:

        transform .15s ease,

        box-shadow .15s ease,

        opacity .15s ease;

    box-shadow:

        0 3px 8px rgba(0,0,0,.15);

}


.boton-votar:hover{

    transform:translateY(-1px);

    box-shadow:

        0 5px 12px rgba(0,0,0,.2);

}


.boton-votar:active{

    transform:translateY(0);

}


/* ======================================
   BOTÓN YA PARTICIPÓ
====================================== */

.boton-votar.votado{

    background:#E8F5E9 !important;

    color:#2E7D32;

    border:1px solid #C8E6C9;

    cursor:not-allowed;

    box-shadow:none;

}


.boton-votar.votado:hover{

    transform:none;

    box-shadow:none;

}


/* ======================================
   CERRAR DETALLE
====================================== */

.cerrar-detalle{

    position:absolute;

    right:13px;

    top:11px;

    width:30px;

    height:30px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:50%;

    background:transparent;

    color:#777;

    cursor:pointer;

    font-size:18px;

    line-height:1;

    transition:

        background .15s ease,

        color .15s ease;

}


.cerrar-detalle:hover{

    background:#F0F0F0;

    color:#333;

}



/* ======================================================
MODAL VOTACIÓN
====================================================== */

#modal-voto{

    position:absolute;

    z-index:2000;

    top:50%;

    left:50%;

    transform:

        translate(-50%,-50%);

}


.contenido-voto{

    position:relative;

    background:white;

    padding:30px;

    border-radius:16px;

    width:360px;

    max-width:calc(100vw - 30px);

    text-align:center;

    box-shadow:

        0 15px 40px rgba(0,0,0,.28);

    overflow:hidden;

}


/* ======================================
   ACENTO
====================================== */

.votacion-acento{

    position:absolute;

    top:0;

    left:0;

    right:0;

    height:6px;

}


/* ======================================
   TÍTULO
====================================== */

.contenido-voto h2{

    margin:5px 0 8px;

    color:var(--azul-oscuro);

    font-size:21px;

    line-height:1.3;

}


/* ======================================
   CÓDIGO
====================================== */

.votacion-codigo{

    color:#777;

    font-size:12px;

    font-weight:800;

    letter-spacing:.8px;

    margin-bottom:8px;

}


/* ======================================
   NOMBRE PROYECTO
====================================== */

.contenido-voto h3{

    color:var(--texto);

    font-size:16px;

    line-height:1.4;

    margin-bottom:20px;

}


/* ======================================
   CAMPO RUT
====================================== */

.campo-rut{

    display:flex;

    flex-direction:column;

    align-items:stretch;

    gap:7px;

    margin:15px 0;

    text-align:left;

}


.campo-rut label{

    font-size:13px;

    font-weight:700;

    color:#555;

}


.contenido-voto input{

    width:100%;

    padding:13px;

    border:1px solid var(--gris-borde);

    border-radius:10px;

    font-size:15px;

    background:white;

    color:var(--texto);

}


.contenido-voto input:focus{

    outline:none;

    border-color:var(--azul-principal);

    box-shadow:

        0 0 0 3px

        rgba(0,90,156,.15);

}


/* ======================================
   BOTONES
====================================== */

.botones-voto{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-top:15px;

}


.contenido-voto button{

    width:100%;

    padding:13px;

    border:none;

    border-radius:10px;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:

        transform .15s ease,

        box-shadow .15s ease,

        opacity .15s ease;

}


.boton-confirmar{

    color:#222;

    box-shadow:

        0 3px 8px rgba(0,0,0,.15);

}


.boton-confirmar:hover{

    transform:translateY(-1px);

    box-shadow:

        0 5px 12px rgba(0,0,0,.2);

}


.boton-cancelar{

    background:#EEEEEE !important;

    color:#555 !important;

}


.boton-cancelar:hover{

    background:#E0E0E0 !important;

}



/* ======================================================
PROYECTOS DESTACADOS
====================================================== */

.tarjeta-destacada{

    background:white;

    padding:22px;

    border-radius:15px;

    margin-bottom:20px;

    box-shadow:

        0 5px 15px rgba(0,0,0,.12);

}



.tarjeta-destacada h2{

    font-size:22px;

    text-align:center;

    color:var(--azul-oscuro);

    margin-bottom:18px;

}



#destacado{

    cursor:pointer;

}



#destacado h3{

    font-size:18px;

    text-align:center;

    color:var(--texto);

    line-height:1.4;

    margin-bottom:12px;

}



#destacado p{

    text-align:center;

    font-size:14px;

    color:var(--verde-votar);

    font-weight:700;

    margin-top:10px;

}



/* ======================================
LISTADO PROYECTOS
====================================== */

#proyectos h2{

    font-size:20px;

    text-align:center;

    color:var(--azul-oscuro);

    margin-bottom:15px;

}



#selector-proyectos{

    width:100%;

    padding:14px;

    margin-top:12px;

    border-radius:12px;

    border:1px solid var(--gris-borde);

    background:white;

    font-size:15px;

    color:var(--texto);

    cursor:pointer;

}



#selector-proyectos:hover{

    border-color:var(--azul-principal);

}



#selector-proyectos:focus{

    outline:none;

    border-color:var(--azul-principal);

    box-shadow:

        0 0 0 3px

        rgba(0,90,156,.15);

}


/* ======================================================
   RANKING DE PROYECTOS
====================================================== */

.ranking-item{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:6px 8px;
    margin-bottom:5px;
    background:#F5F7FA;
    border:1px solid #E0E0E0;
    border-radius:8px;
    cursor:pointer;
    transition:background .15s ease, transform .15s ease;
}

.ranking-item:hover{
    background:#EEF3F7;
    transform:translateY(-1px);
}

.ranking-numero{
    width:20px;
    height:20px;
    min-width:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--azul-principal);
    color:white;
    font-size:9px;
    font-weight:800;
}

.ranking-contenido{
    flex:1;
    min-width:0;
    text-align:center;
}

.ranking-codigo{
    font-size:11px;
    font-weight:800;
    color:#777;
    letter-spacing:.3px;
    line-height:1.1;
    margin-bottom:2px;
}

.ranking-nombre{
    font-size:12px;
    font-weight:700;
    color:var(--azul-oscuro);
    line-height:1.15;
}

.ranking-contenido p{
    margin:2px 0 0;
    font-size:10px;
    color:#888;
    line-height:1.1;
}



/* ======================================================
MODAL VOTACIÓN
====================================================== */

#modal-voto{

    position:absolute;

    z-index:2000;

    top:50%;

    left:50%;

    transform:

        translate(-50%,-50%);

}



.contenido-voto{

    background:white;

    padding:25px;

    border-radius:15px;

    width:320px;

    text-align:center;

    box-shadow:

        0 10px 30px rgba(0,0,0,.25);

}



.contenido-voto input{

    flex:1;

    padding:13px;

    border:1px solid var(--gris-borde);

    border-radius:10px;

    font-size:15px;

    background:white;

    color:var(--texto);

}



.contenido-voto input:focus{

    outline:none;

    border-color:var(--azul-principal);

    box-shadow:

        0 0 0 3px

        rgba(0,90,156,.15);

}



.campo-rut{

    display:flex;

    align-items:center;

    gap:12px;

    margin:15px 0;

    text-align:left;

}



.campo-rut label{

    font-weight:600;

    white-space:nowrap;

}



.contenido-voto button{

    width:100%;

    padding:13px;

    margin-top:10px;

    border:none;

    border-radius:10px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}



.contenido-voto button:first-of-type{

    background:var(--verde-votar);

    color:white;

}



.contenido-voto button:first-of-type:hover{

    background:#1b5e20;

}



.contenido-voto button:last-of-type{

    background:#e51010;

    color:#ffffff;

}



.contenido-voto button:last-of-type:hover{

    background:#c90000;

}



.votado{

    background:#4CAF50;

    cursor:not-allowed;

    opacity:.85;

}



/* ======================================================
MODAL MENSAJES
====================================================== */

#modal-mensaje{

    position:absolute;

    z-index:3000;

    top:50%;

    left:50%;

    transform:

        translate(-50%,-50%);

}



.contenido-mensaje{

    background:white;

    width:320px;

    padding:30px;

    border-radius:15px;

    text-align:center;

    box-shadow:

        0 10px 30px rgba(0,0,0,.25);

}



.contenido-mensaje h2{

    color:var(--azul-oscuro);

    margin-bottom:15px;

}



.contenido-mensaje p{

    margin-bottom:20px;

    line-height:1.5;

}



.contenido-mensaje button{

    width:100%;

    padding:12px;

    border:none;

    border-radius:10px;

    background:var(--azul-principal);

    color:white;

    font-weight:600;

    cursor:pointer;

}



/* ======================================================
CONTROLES LEAFLET DERECHA
====================================================== */

.leaflet-top.leaflet-right{

    display:flex;

    flex-direction:column;

    align-items:flex-end;

}



.leaflet-control-layers{

    order:1;

}



.leaflet-control-zoom{

    order:2;

    margin-top:10px;

}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 768px) {

    /* HERO */

    .hero {
        min-height: auto;
        padding: 35px 18px;
    }

    .hero .logo-municipal img {
        width: 95px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-subtitulo {
        font-size: 16px;
        line-height: 1.5;
    }

    .titulo-con-logo {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .logo-piimep-inicio {
        width: 125px;
    }

    /* CONTENIDO INFORMATIVO */

    .contenido-informativo {
        padding: 25px 12px 90px;
    }

    .bloque-informativo {
        padding: 24px 18px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .bloque-informativo h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .bloque-informativo p {
        font-size: 15px;
        line-height: 1.65;
    }

    .tarjetas-iniciativas {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .tarjeta-iniciativa {
        padding: 20px;
    }

    /* ACCESO A PARTICIPACIÓN */

    .seccion-participar {
        min-height: auto;
        padding: 28px 12px;
        border-radius: 14px;
    }

    .tarjeta-ingreso {
        padding: 25px 18px;
    }

    .tarjeta-ingreso h2 {
        font-size: 22px;
    }

    #boton-ingresar {
        width: calc(100% - 24px);
        max-width: 400px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    /* APLICACIÓN PRINCIPAL */

    #aplicacion {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    /* ENCABEZADO COMPACTO */

    #header {
        flex: 0 0 auto;
        height: auto;
        min-height: 58px;
        padding: 6px 10px;
        gap: 8px;
    }

    .titulo-header {
        min-width: 0;
        flex: 1 1 auto;
        gap: 7px;
    }

    .logo-piimep-app {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .texto-header {
        min-width: 0;
    }

    .texto-header h1 {
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .acciones-header {
        flex: 0 0 auto;
        margin-left: 0;
        gap: 2px;
    }

    #usuario-activo {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
    }

    #boton-volver-inicio {
        padding: 7px 8px;
        border-radius: 7px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* MAPA Y CONTROLES */

    #contenedor {
    flex-direction: column;
}

    #panel {
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gris-borde);
    padding: 4px 10px;
}

    /* Por ahora se oculta el ranking visualmente en móvil.
       El selector de proyectos se mantiene disponible. */

    .tarjeta-destacada {
        display: none;
    }

    #proyectos h2 {
        display: none;
    }

    #proyectos {
    width: 100%;
    margin: 0;
    padding: 0;
}

#selector-proyectos {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 9px 12px;

    min-height: 40px;
    font-size: 14px;
    border-radius: 9px;
}

    #mapa {
    order: 1;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
}

    /* DETALLE DEL PROYECTO */

    #detalle-proyecto {
        top: 8px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        max-height: calc(100% - 16px);
        overflow-y: auto;
        padding: 18px;
        border-radius: 12px;
    }

    #detalle-proyecto h2 {
        font-size: 18px;
    }

    /* MODALES */

    .contenido-voto {
        width: calc(100vw - 24px);
        max-width: 400px;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 22px 18px;
    }

    .contenido-mensaje {
        width: calc(100vw - 24px);
        max-width: 360px;
        padding: 24px 18px;
    }

    /* LEYENDA */

    #leyenda-proyectos {
        right: 8px;
        bottom: 12px;
    }

    #boton-leyenda {
        min-height: 38px;
        padding: 9px 11px;
    }

    /* CONTROLES LEAFLET */

    .leaflet-top.leaflet-right {
        top: 8px;
        right: 8px;
    }

    .leaflet-control-layers,
    .leaflet-control-zoom {
        margin-top: 4px !important;
    }
}

.logo-piimep-inicio{

    width:170px;

    height:auto;

    object-fit:contain;

}
@media (max-height: 500px) and (orientation: landscape) {

    #header {
        min-height: 48px;
        padding: 4px 10px;
    }

    #panel {
        padding: 5px 10px;
    }

    #selector-proyectos {
        min-height: 34px;
        padding: 5px 10px;
    }

}
/* ======================================================
   ICONO PARADERO
   ====================================================== */

.icono-paradero{

    background:none;

    border:none;

}


/* ======================================================
   SEÑAL
   ====================================================== */

.paradero-senal{

    width:21px;

    height:27px;

    background:#005A9C;

    border-radius:3px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:0;

    box-shadow:
        0 1px 3px rgba(0,0,0,.25);

}


/* ======================================================
   BUS
   ====================================================== */

.icono-bus{

    width:15px;

    height:15px;

    display:block;

}


/* ======================================================
   NÚMERO
   ====================================================== */

.numero-paradero{

    color:white;

    font-size:8px;

    font-weight:700;

    line-height:9px;

    text-align:center;

    white-space:nowrap;

}
/* ======================================
   ICONOS DE PARADEROS
====================================== */

.paradero-cuadro{

    width:22px;
    height:18px;

    background:rgba(0,90,156,0.82);

    color:#ffffff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-family:Arial, sans-serif;
    font-size:9px;
    font-weight:700;
    line-height:1;

    border-radius:2px;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.25);
}
/* ======================================
   ICONOS DE PROYECTOS PIIMEP
   ====================================== */

.icono-proyecto{

    background:transparent;

    border:none;

}


.icono-proyecto span{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    border-radius:50%;

    font-family:Arial,sans-serif;

    font-size:14px;

    font-weight:700;

    color:#FFFFFF;

    text-shadow:
        0 1px 2px rgba(0,0,0,0.35);

    box-shadow:
        0 2px 6px rgba(0,0,0,0.35);

    transition:
        transform 0.15s ease;

}


/* ======================================
   MOVILIDAD
   ====================================== */

.icono-movilidad span{

    background:#F2C300;

    border:3px solid #FFFFFF;

}


/* ======================================
   ESPACIO PÚBLICO
   ====================================== */

.icono-espacio-publico span{

    background:#2E7D32;

    border:3px solid #FFFFFF;

}


/* ======================================
   CATEGORÍA DESCONOCIDA
   ====================================== */

.icono-proyecto span{

    background:#666666;

    border:3px solid #FFFFFF;

}


/* ======================================
   EFECTO HOVER
   ====================================== */

.icono-proyecto:hover span{

    transform:scale(1.12);

}


/* ======================================
   ICONOS DE PROYECTOS PIIMEP
   ====================================== */

.icono-proyecto{

    background:transparent;

    border:none;

}


.icono-proyecto span{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    border-radius:50%;

    font-family:Arial,sans-serif;

    font-size:14px;

    font-weight:700;

    color:#FFFFFF;

    text-shadow:
        0 1px 2px rgba(0,0,0,0.35);

    box-shadow:
        0 2px 6px rgba(0,0,0,0.35);

    transition:
        transform 0.15s ease;

}


/* ======================================
   MOVILIDAD
   ====================================== */

.icono-movilidad span{

    background:#F2C300;

    border:3px solid #FFFFFF;

}


/* ======================================
   ESPACIO PÚBLICO
   ====================================== */

.icono-espacio-publico span{

    background:#2E7D32;

    border:3px solid #FFFFFF;

}


/* ======================================
   CATEGORÍA DESCONOCIDA
   ====================================== */

.icono-proyecto span{

    background:#666666;

    border:3px solid #FFFFFF;

}


/* ======================================
   EFECTO HOVER
   ====================================== */

.icono-proyecto:hover span{

    transform:scale(1.12);

}

/* ======================================
   ETIQUETA DE PROYECTO
====================================== */

.icono-proyecto {

    background: transparent !important;

    border: none !important;

}


.etiqueta-proyecto {
    min-width: 42px;
    box-sizing: border-box;
    padding: 3px 4px;

    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;

    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 5px;

    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
/* ======================================================
LEYENDA DE PROYECTOS
====================================================== */

#leyenda-proyectos{
    position:absolute;
    right:15px;
    bottom:15px;
    z-index:1000;
    font-size:12px;
}


/* BOTÓN */

#boton-leyenda{
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 11px;
    border:none;
    border-radius:8px;
    background:white;
    color:#555;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
}


/* CONTENIDO OCULTO */

#contenido-leyenda{
    display:none;
    margin-bottom:7px;
    padding:10px 12px;
    background:white;
    border:1px solid #E0E0E0;
    border-radius:9px;
    box-shadow:0 3px 12px rgba(0,0,0,.18);
    min-width:150px;
}


/* ITEMS */

.item-leyenda{
    display:flex;
    align-items:center;
    gap:8px;
    margin:5px 0;
    color:#555;
    font-size:11px;
    font-weight:600;
}


/* SIMBOLOGÍA */

.simbolo-leyenda{
    width:32px;
    height:22px;
    min-width:32px;
    display:block;
    border:2px solid #FFFFFF;
    border-radius:5px;
    box-shadow:0 1px 4px rgba(0,0,0,.45);
}

.simbolo-leyenda.movilidad{
    background:#E88700;
}

.simbolo-leyenda.espacio-publico{
    background:#2E7D32;
}

/* =========================================
   ACCESO A PLADECO DESDE EL FORMULARIO
========================================= */

#boton-participar-pladeco {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 13px 18px;

    border: 2px solid var(--azul-principal);
    border-radius: 10px;

    background: white;
    color: var(--azul-principal);

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition: background 0.2s, color 0.2s;
}

#boton-participar-pladeco:hover {
    background: var(--azul-principal);
    color: white;
}

/* =========================================
   CORREGIR SUPERPOSICIÓN DE POPUPS EN LEAFLET
   ========================================= */

/* El contenedor del mapa crea el contexto de apilamiento */
#mapa {
    position: relative;
    isolation: isolate;
}

/* Los controles quedan en un nivel inferior */
#mapa .leaflet-top,
#mapa .leaflet-bottom {
    z-index: 500 !important;
}

/* El panel completo de popups queda por encima */
#mapa .leaflet-popup-pane {
    z-index: 1000 !important;
    pointer-events: none;
}

/* El popup recibe los clics normalmente */
#mapa .leaflet-popup {
    z-index: 1001 !important;
    pointer-events: auto;
}

/* La equis para cerrar el popup */
#mapa .leaflet-popup-close-button {
    z-index: 1002 !important;
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 25px !important;
    line-height: 1 !important;
    color: #222 !important;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

@media (max-height: 500px) {
    #detalle-proyecto {
        padding: 8px !important;
        transform: scale(0.75);
        transform-origin: top left;
    }

    #detalle-proyecto .cerrar-detalle {
        top: 4px;
        right: 4px;
        font-size: 14px;
    }

    #detalle-proyecto .detalle-codigo {
        margin-bottom: 2px;
        font-size: 0.7rem;
    }

    #detalle-proyecto h2 {
        margin-top: 2px;
        margin-bottom: 4px;
        font-size: 1rem;
        line-height: 1.1;
    }

    #detalle-proyecto .detalle-categoria {
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    #detalle-proyecto .detalle-datos {
        gap: 4px;
        margin-bottom: 5px;
    }

    #detalle-proyecto .detalle-dato {
        margin-bottom: 2px;
        font-size: 0.7rem;
    }

    #detalle-proyecto .detalle-label {
        font-size: 0.65rem;
    }

    #detalle-proyecto .detalle-descripcion {
        margin-top: 3px;
        margin-bottom: 5px;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    #detalle-proyecto .detalle-descripcion p {
        margin-top: 2px;
        margin-bottom: 2px;
    }

    #detalle-proyecto .detalle-votos {
        margin-top: 3px;
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    #detalle-proyecto .boton-votar {
        padding: 6px 8px;
        font-size: 0.75rem;
        line-height: 1.1;
    }
}
/* MODO HORIZONTAL: eliminar barras de desplazamiento */
@media (max-height: 500px) and (orientation: landscape) {
    #detalle-proyecto {
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        transform: scale(0.65);
        transform-origin: top left;
    }

    #detalle-proyecto * {
        scrollbar-width: none !important;
    }

    #detalle-proyecto *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* =========================================
   MODAL DE VOTACIÓN — MÓVIL HORIZONTAL
========================================= */

@media (max-height: 500px) and (orientation: landscape) {

    #modal-voto {
        max-height: 100%;
    }

    #modal-voto .contenido-voto {
        box-sizing: border-box;
        width: 320px;
        max-width: calc(100vw - 24px);

        padding: 12px 16px;
        border-radius: 12px;

        transform: scale(0.85);
        transform-origin: center center;
    }

    #modal-voto .votacion-acento {
        height: 4px;
    }

    #modal-voto .contenido-voto h2 {
        font-size: 17px;
        line-height: 1.15;
        margin: 3px 0 4px;
    }

    #modal-voto .votacion-codigo {
        font-size: 10px;
        margin-bottom: 4px;
    }

    #modal-voto .contenido-voto h3 {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    #modal-voto .campo-rut {
        gap: 4px;
        margin: 7px 0;
    }

    #modal-voto .campo-rut label {
        font-size: 11px;
    }

    #modal-voto .contenido-voto input {
        box-sizing: border-box;
        padding: 8px;
        font-size: 13px;
    }

    #modal-voto .botones-voto {
        gap: 5px;
        margin-top: 8px;
    }

    #modal-voto .contenido-voto button {
        padding: 8px;
        margin-top: 0;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* =========================================
   TEXTO CENTRADO — PANTALLA INFORMATIVA
========================================= */

#pantalla-informativa .hero-contenido {
    text-align: center;
}

#pantalla-informativa .hero-subtitulo {
    text-align: center;
}

#pantalla-informativa .bloque-informativo {
    text-align: center;
}

#pantalla-informativa .tarjeta-iniciativa {
    text-align: center;
}

#pantalla-informativa .mensaje-final {
    text-align: center;
}

#pantalla-informativa .tarjeta-ingreso {
    text-align: center;
}

#pantalla-informativa .tarjeta-ingreso .subtitulo {
    text-align: center;
}
/* =========================================
   AJUSTES DE ANCHO Y ALINEACIÓN
   PANTALLA INFORMATIVA
========================================= */

/* Contenido principal más compacto */
#pantalla-informativa .hero-contenido,
#pantalla-informativa .contenido-informativo {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Título en una sola línea en pantallas grandes */
#pantalla-informativa .titulo-con-logo h1 {
    white-space: nowrap;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    text-align: center;
}

/* Mantener el título y el logo bien alineados */
#pantalla-informativa .titulo-con-logo {
    justify-content: center;
    gap: 16px;
}

/* Texto introductorio más estrecho */
#pantalla-informativa .hero-subtitulo {
    max-width: 850px;
    margin: 16px auto 28px;
    text-align: center;
    line-height: 1.6;
}

/* Bloques informativos con ancho controlado */
#pantalla-informativa .bloque-informativo {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Párrafos más cómodos de leer */
#pantalla-informativa .bloque-informativo p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Tarjetas de participación */
#pantalla-informativa .tarjetas-iniciativas {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Adaptación a celulares */
@media (max-width: 768px) {
    #pantalla-informativa .titulo-con-logo h1 {
        white-space: normal;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    #pantalla-informativa .titulo-con-logo {
        flex-wrap: wrap;
        gap: 10px;
    }

    #pantalla-informativa .hero-subtitulo,
    #pantalla-informativa .bloque-informativo p {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* =========================================
   ENCABEZADO: TÍTULO ARRIBA Y LOGOS ABAJO
========================================= */

#pantalla-informativa .titulo-con-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 25px;
    box-sizing: border-box;
}

/* Título */
#pantalla-informativa .titulo-con-logo h1 {
    width: 100%;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(1.5rem, 2.5vw, 2.3rem);
}

/* Ambos logos debajo del título */
#pantalla-informativa .logos-planificacion {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

/* Tamaño de los logos */
#pantalla-informativa .logo-piimep-inicio,
#pantalla-informativa .logo-pladeco-inicio {
    display: block;
    width: 160px;
    height: 150px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 768px) {
    #pantalla-informativa .titulo-con-logo {
        padding: 0 16px;
        gap: 14px;
    }

    #pantalla-informativa .titulo-con-logo h1 {
        white-space: normal;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    #pantalla-informativa .logos-planificacion {
        gap: 20px;
    }

    #pantalla-informativa .logo-piimep-inicio,
    #pantalla-informativa .logo-pladeco-inicio {
        width: 120px;
        height: 95px;
    }
}
/* Iconografía de las tarjetas de participación */
#pantalla-informativa .icono-iniciativa {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    height: 145px;
}

#pantalla-informativa .icono-iniciativa img {
    display: block;
    width: 145px;
    height: 145px;
    object-fit: contain;
}

#pantalla-informativa .icono-piimep {
    color: #6541B8;
}

#pantalla-informativa .icono-pladeco {
    color: #25845A;
}

@media (max-width: 768px) {
    #pantalla-informativa .icono-iniciativa,
    #pantalla-informativa .icono-iniciativa img {
        height: 110px;
        width: 110px;
    }
}
.detalle-descripcion {
    height: auto;
    max-height: none;
    overflow: visible;
}

.detalle-descripcion p {
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ======================================
   BUSCADOR GEOGRÁFICO PHOTON
   PIIMEP PARTICIPA
====================================== */

.control-busqueda-photon {
    position: relative;
}

.boton-lupa-photon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    color: #003B6D;

    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;

    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.boton-lupa-photon:hover {
    background: #f4f7fa;
}

.panel-busqueda-photon {
    position: absolute;
    top: 0;
    right: 44px;

    width: 290px;
    padding: 10px;

    background: #fff;
    border-radius: 6px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

    z-index: 1000;
}

.panel-busqueda-photon[hidden] {
    display: none;
}

.input-busqueda-photon {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;

    padding: 9px 10px;

    border: 1px solid #cbd5e1;
    border-radius: 4px;

    font: inherit;
    font-size: 14px;
    outline: none;
}

.input-busqueda-photon:focus {
    border-color: #003B6D;
    box-shadow: 0 0 0 2px rgba(0, 59, 109, 0.12);
}

.resultados-busqueda-photon {
    max-height: 230px;
    overflow-y: auto;
    margin-top: 6px;
}

.opcion-busqueda-photon {
    display: block;
    width: 100%;

    padding: 9px;

    text-align: left;

    border: 0;
    border-bottom: 1px solid #eee;

    background: #fff;
    color: #334155;

    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.opcion-busqueda-photon:hover {
    background: #eef5fb;
}

.estado-busqueda-photon {
    margin: 6px 0 0;

    font-size: 12px;
    color: #475569;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 480px) {

    .panel-busqueda-photon {
        width: min(260px, calc(100vw - 100px));
    }

}
/* ======================================
   ACCESO RESUMEN EJECUTIVO PIIMEP
====================================== */

#acceso-resumen {
    position: absolute;
    top: 80px;
    left: 50px;
    z-index: 1000;
    font-family: inherit;
}

#acceso-resumen summary {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #34495e;

    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);

    cursor: pointer;
    list-style: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

#acceso-resumen summary::-webkit-details-marker {
    display: none;
}

#acceso-resumen summary svg {
    width: 24px;
    height: 24px;
}

#acceso-resumen summary:hover {
    background: #003B6D;
    color: #ffffff;
    transform: scale(1.06);
}

.panel-resumen {
    position: absolute;
    top: 0;
    left: 44px;

    width: 235px;
    padding: 15px;

    background: #ffffff;
    color: #263238;

    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);

    font-size: 13px;
    line-height: 1.5;
}

.panel-resumen strong {
    color: #003B6D;
    font-size: 14px;
}

.panel-resumen p {
    margin: 7px 0 12px;
}

.panel-resumen a {
    color: #0066a4;
    font-weight: 600;
    text-decoration: none;
}

.panel-resumen a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    #acceso-resumen summary {
        width: 42px;
        height: 42px;
    }

    #acceso-resumen summary svg {
        width: 24px;
        height: 24px;
    }
}
#acceso-resumen summary {
    position: relative;
}

/* ======================================
   ETIQUETA RESUMEN EJECUTIVO
   ====================================== */

#acceso-resumen summary {
    position: relative;
}

#acceso-resumen summary::after {
    content: "Resumen Ejecutivo";

    position: absolute;
    top: calc(100% + 7px);
    left: 50%;

    transform: translateX(-50%);
    transform-origin: center top;

    white-space: nowrap;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #ffffff;
    background: #003B6D;

    padding: 4px 7px;
    border-radius: 5px;

    pointer-events: none;

    animation: pulsoResumen 3s ease-in-out infinite;
}

/* ======================================
   PULSO SUTIL
   ====================================== */

@keyframes pulsoResumen {
    0%, 100% {
        transform: translateX(-50%) scale(0.98);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.08);
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: translateX(-50%) scale(1.04);
        box-shadow: 0 0 7px rgba(255, 255, 255, 0.22);
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
    }
}
/* ======================================
   MÓVILES EN ORIENTACIÓN HORIZONTAL
====================================== */

@media (orientation: landscape)
and (max-height: 600px)
and (pointer: coarse) {

    #aplicacion {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    #header {
        flex: 0 0 auto;
        min-height: 48px;
        height: auto;
        padding: 4px 10px;
        gap: 8px;
    }

    .titulo-header {
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
    }

    .logo-piimep-app {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }

    .texto-header h1 {
        font-size: 11px;
        line-height: 1.2;
    }

    .acciones-header {
        flex: 0 0 auto;
        gap: 4px;
    }

    #usuario-activo {
        max-width: 90px;
        font-size: 9px;
    }

    #boton-volver-inicio {
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
    }

    #contenedor {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        position: relative;
    }

    #panel {
        order: 0;
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        padding: 4px 10px;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--gris-borde);
    }

    .tarjeta-destacada,
    #proyectos h2 {
        display: none;
    }

    #proyectos {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #selector-proyectos {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 34px;
        box-sizing: border-box;
        margin: 0;
        padding: 5px 10px;
        font-size: 12px;
    }

    #mapa {
        order: 1;
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        min-height: 0;
        position: relative;
    }
}
/* ======================================
   EVITAR ZOOM AUTOMÁTICO EN IOS
   ====================================== */

@media (max-width: 768px) {

    input,
    select,
    textarea {

        font-size: 16px !important;

    }

}