.formulario-page {
    min-height: 100vh;
    padding: 36px 20px 60px;
    color: #24364b;
    background: #f3f6fa;
}

.formulario-contenedor {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.formulario-encabezado {
    padding: 34px 38px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(7, 91, 157, 0.35) 0%, rgba(13, 121, 184, 0.15) 100%),
        url("/conmemora/jakarta.faces.resource/formularioCondor.png.hsm?ln=img") center / cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(7, 91, 157, 0.2);
}

.formulario-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.formulario-encabezado .minuta-header-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.formulario-introduccion {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
}

.formulario-panel {
    margin-top: 26px;
}

.grupo-formulario {
    margin: 0 0 26px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(28, 55, 90, 0.07);
}

.grupo-formulario h3 {
    margin: 0 0 24px;
    padding-bottom: 16px;
    color: #075b9d;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 2px solid #e5eef6;
}

.campo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e1e8f0;
    border-left: 4px solid #1685c2;
    border-radius: 10px;
}

.campo:last-child {
    margin-bottom: 0;
}

.campo .ui-outputlabel,
.campo label {
    display: block;
    margin: 0;
    color: #263b50;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.campo .ui-inputfield,
.campo .entrada-texto {
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 11px 13px;
    color: #24364b;
    background: #ffffff;
    border: 1px solid #b9c8d8;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo .ui-inputfield:hover,
.campo .entrada-texto:hover {
    border-color: #6c9fc3;
}

.campo .ui-inputfield:focus,
.campo .ui-inputfield.ui-state-focus,
.campo .entrada-texto:focus {
    border-color: #0875b5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 117, 181, 0.14);
}

.campo .ui-selectonemenu {
    width: 100%;
    max-width: none;
    min-height: 46px;
    border: 1px solid #b9c8d8;
    border-radius: 7px;
    box-sizing: border-box;
}

.campo .ui-selectonemenu .ui-selectonemenu-label {
    padding: 11px 42px 11px 13px;
    color: #24364b;
    font-size: 1rem;
    box-sizing: border-box;
}

.campo .ui-selectonemenu .ui-selectonemenu-trigger {
    width: 40px;
}

.campo .ui-selectonemenu.ui-state-focus {
    border-color: #0875b5;
    box-shadow: 0 0 0 3px rgba(8, 117, 181, 0.14);
}

.buscador-mapa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.contenedor-autocompletado {
    position: relative;
    min-width: 0;
}

.lista-sugerencias {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 260px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    background: #ffffff;
    border: 1px solid #b9c8d8;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(28, 55, 90, 0.16);
}

.lista-sugerencias[hidden] {
    display: none;
}

.opcion-sugerencia {
    width: 100%;
    padding: 11px 12px;
    color: #263b50;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    line-height: 1.4;
    text-align: left;
}

.opcion-sugerencia:hover,
.opcion-sugerencia:focus {
    background: #eaf4fb;
    outline: none;
}

.boton-mapa {
    min-height: 46px;
    padding: 0 20px;
    color: #ffffff;
    background: #0875b5;
    border: 1px solid #0875b5;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.boton-mapa:hover {
    background: #075f93;
    border-color: #075f93;
}

.boton-mapa:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 117, 181, 0.2);
}

.boton-mapa:disabled {
    background: #8195a8;
    border-color: #8195a8;
    cursor: wait;
}

.estado-mapa {
    min-height: 22px;
    margin: 0;
    color: #455b70;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
}

.estado-mapa:empty {
    display: none;
}

.estado-mapa.estado-exito {
    color: #23733c;
}

.estado-mapa.estado-error {
    color: #b42318;
}

.estado-mapa.estado-advertencia {
    color: #8a4b08;
}

.mapa-ubicacion {
    width: 100%;
    height: 360px;
    margin-top: 2px;
    overflow: hidden;
    background: #e6edf3;
    border: 1px solid #c4d0dc;
    border-radius: 10px;
    cursor: default;
}

.mapa-ubicacion.mapa-ajustable,
.mapa-ubicacion.mapa-ajustable .leaflet-container {
    cursor: crosshair;
}

.mapa-ubicacion .leaflet-container,
.mapa-ubicacion .leaflet-grab,
.mapa-ubicacion .leaflet-dragging .leaflet-grab {
    cursor: default;
}

.mapa-ubicacion .leaflet-control-attribution {
    font-size: 0.7rem;
}

@media (max-width: 640px) {
    .formulario-page {
        padding: 20px 12px 40px;
    }

    .formulario-encabezado {
        padding: 22px 18px;
        background-position: center, right center;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: 12px;
    }

    .formulario-encabezado .formulario-etiqueta {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }

    .formulario-encabezado .minuta-header-title {
        font-size: clamp(1rem, 4vw, 1.35rem);
        line-height: 1.3;
    }

    .formulario-encabezado .formulario-titulo-obra {
        display: block;
    }

    .formulario-encabezado .formulario-introduccion {
        margin-top: 10px;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .grupo-formulario {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .grupo-formulario h3 {
        font-size: 1.22rem;
    }

    .campo {
        padding: 16px;
    }

    .campo .ui-outputlabel,
    .campo label,
    .campo .ui-inputfield,
    .campo .entrada-texto {
        font-size: 0.98rem;
    }

    .buscador-mapa {
        grid-template-columns: 1fr;
    }

    .boton-mapa {
        width: 100%;
    }

    .mapa-ubicacion {
        height: 300px;
    }
}
.campo-otro {
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
    gap: 8px;
}

.campo-otro label {
    display: block;
    font-weight: 600;
}

.campo-otro .ui-inputfield {
    width: 100%;
    box-sizing: border-box;
}

.aviso-obligatorios {
    margin: 0;
    color: #52677a;
    font-size: 0.95rem;
    text-align: right;
}

.aviso-obligatorios span {
    color: #c62828;
    font-weight: 700;
}

@media (max-width: 600px) {
    .aviso-obligatorios {
        text-align: left;
    }
}
.etiqueta-campo {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #173652;
}

.acciones-archivo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.boton-eliminar-archivo {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #c62828;
    border-radius: 6px;
    background: #ffffff;
    color: #c62828;
    font-weight: 600;
    cursor: pointer;
}
.campo-fotografia .ui-fileupload-filename {
    display: none !important;
}

.contenedor-tabla-archivo {
    width: 100%;
    margin-top: 16px;
    overflow-x: auto;
}

.contenedor-tabla-archivo[hidden] {
    display: none;
}

.tabla-archivo {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-archivo th,
.tabla-archivo td {
    padding: 12px 14px;
    border-bottom: 1px solid #d6e0e8;
    text-align: left;
}

.tabla-archivo th {
    background: #edf4f8;
    color: #173652;
    font-weight: 700;
}

.tabla-archivo tbody tr:last-child td {
    border-bottom: none;
}

.tabla-archivo .columna-accion {
    width: 80px;
    text-align: center;
}

.boton-eliminar-fotografia {
    width: 36px;
    height: 36px;
    border: 1px solid #c62828;
    border-radius: 6px;
    background: #ffffff;
    color: #c62828;
    cursor: pointer;
}

.boton-eliminar-fotografia:hover {
    background: #fff1f1;
}

.ayuda-archivo {
    display: block;
    margin-top: 10px;
    color: #52677a;
}

.confirmacion-envio {
    min-height: 300px;
}

.confirmacion-envio h3 {
    text-align: left;
}

.confirmacion-envio-contenido {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.confirmacion-envio-icono {
    margin-bottom: 18px;
    color: #2e7d32;
    font-size: 4.5rem;
}

.confirmacion-envio p {
    max-width: 620px;
    margin: 0;
    color: #173652;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .confirmacion-envio {
        min-height: 260px;
    }

    .confirmacion-envio-contenido {
        min-height: 160px;
        padding: 18px 6px;
    }

    .confirmacion-envio-icono {
        font-size: 3.75rem;
    }
}

/* Página de resultados: contenido centrado dentro de una tarjeta. */
.minuta-page {
    width: 100%;
    padding: 32px clamp(16px, 4vw, 64px) 40px;
    background: #f3f6fa;
    box-sizing: border-box;
}

.minuta-contenedor {
    width: 100%;
    max-width: 1480px;
    min-width: 0;
    margin: 0 auto;
    padding: 28px 30px 30px;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(28, 55, 90, 0.1);
    box-sizing: border-box;
}

.minuta-header-top {
    margin-bottom: 20px;
}

.minuta-header-title {
    margin: 0;
    color: #173652;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.minuta-panel,
.minuta-tabla {
    width: 100%;
    min-width: 0;
}

.minuta-tabla {
    overflow-x: auto;
}

@media (max-width: 640px) {
    .minuta-page {
        padding: 18px 12px 28px;
    }

    .minuta-contenedor {
        padding: 20px 14px 22px;
        border-radius: 12px;
    }
}

.minuta-columna-acciones {
    width: 150px;
    text-align: center;
}

.detalle-respuesta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 8px;
}

.detalle-respuesta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    color: #24364b;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.detalle-respuesta-ubicacion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.detalle-respuesta-ubicacion .ui-button {
    flex-shrink: 0;
    text-decoration: none;
}

.detalle-respuesta-label {
    color: #075b9d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.detalle-respuesta-ancho {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .detalle-respuesta-grid {
        grid-template-columns: 1fr;
    }

    .detalle-respuesta-ancho {
        grid-column: auto;
    }
}
