/* R_26010 - Estilos hoja de registro Hacienda de Leon */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f2f4ef;
    color: #223322;
}

.cabecera {
    width: 100%;
    padding: 22px 22px 0;
}

.imagen-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.imagen-wrap img.campo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: brightness(0.85);
}

.imagen-wrap .logo {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.imagen-wrap .logo img {
    height: 60px;
    display: block;
}

.imagen-wrap .titulo {
    position: absolute;
    bottom: 18px;
    left: 16px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.imagen-wrap .titulo h1 {
    margin: 0;
    font-size: 26px;
}

.imagen-wrap .titulo p {
    margin: 4px 0 0;
    font-size: 14px;
}

.contenedor {
    max-width: 640px;
    margin: 40px auto 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.cuerpo-form {
    padding: 24px 28px 32px;
}

.linea-verde {
    border-bottom: 2px solid #1f5c2e;
    margin-bottom: 20px;
}

.errores {
    background: #fdecea;
    border: 1px solid #f5b3ac;
    color: #86241a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.errores ul {
    margin: 0;
    padding-left: 20px;
}

.campo-grupo {
    margin-bottom: 18px;
}

.campo-grupo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #33402f;
}

.campo-grupo input[type="text"],
.campo-grupo input[type="email"],
.campo-grupo input[type="tel"],
.campo-grupo input[type="date"],
.campo-grupo input[type="number"],
.campo-grupo select,
.campo-grupo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d0c4;
    border-radius: 8px;
    font-size: 14px;
    background: #fafcf9;
}

.campo-grupo textarea {
    resize: vertical;
    min-height: 80px;
}

.club-buscador {
    position: relative;
}

.lista-sugerencias {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #c8d0c4;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.item-sugerencia {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
}

.item-sugerencia:hover {
    background: #eef3ea;
}

.item-otro {
    border-top: 1px solid #e2e6de;
    font-style: italic;
    color: #4c5a47;
}

.item-vacio {
    padding: 10px 12px;
    font-size: 14px;
    color: #8a938a;
    font-style: italic;
}

.campo-grupo .ayuda {
    font-size: 12px;
    color: #6a756a;
    margin-top: 4px;
}

.fila-doble {
    display: flex;
    gap: 16px;
}

.fila-doble .campo-grupo {
    flex: 1;
}

.radio-opciones {
    display: flex;
    gap: 24px;
}

.radio-opciones label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-bottom: 0;
}

.radio-opciones input {
    width: auto;
}

.boton-enviar {
    width: 100%;
    background: #1f5c2e;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.boton-enviar:hover {
    background: #164522;
}

.mensaje-confirmacion {
    text-align: center;
    padding: 20px 10px;
}

.mensaje-confirmacion h2 {
    border: none;
    color: #1f5c2e;
}

.enlace-volver {
    display: inline-block;
    margin-top: 16px;
    color: #1f5c2e;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {
    .fila-doble {
        flex-direction: column;
        gap: 0;
    }

    .contenedor {
        margin: 20px 12px 30px;
    }

    .cuerpo-form {
        padding: 18px;
    }

    .cabecera .titulo h1 {
        font-size: 20px;
    }
}
