/* ================================================================================
   CHOIX - FORMULARIOS
   Compartido por: [formulario_contacto], [formulario_quejas_denuncias],
   [formulario_propuesta_ciudadana] — los 3 usan exactamente el mismo CSS.
   ================================================================================ */

.contacto-choix-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.contacto-info-card {
    background: linear-gradient(135deg, #1a2f6b 0%, #233E8D 50%, #004c91 100%);
    border-radius: 20px;
    padding: 40px 45px;
    margin-bottom: 30px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(35, 62, 141, 0.4);
    position: relative;
    overflow: hidden;
}

.contacto-info-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contacto-info-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.contacto-info-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.contacto-info-escudo {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contacto-info-escudo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.contacto-info-titulo {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.contacto-info-slogan {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-style: italic;
}

.contacto-info-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.contacto-info-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contacto-info-icono {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-info-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contacto-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
}

.contacto-info-valor {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.contacto-info-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacto-info-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.contacto-formulario-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contacto-formulario-card h3 {
    text-align: center;
    color: #233E8D;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.contacto-intro {
    text-align: center;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #233E8D;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 62, 141, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.recaptcha-wrapper {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.btn-enviar-contacto {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #233E8D 0%, #004c91 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(35, 62, 141, 0.3);
}

.btn-enviar-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 62, 141, 0.4);
    background: linear-gradient(135deg, #1a2f6b 0%, #003670 100%);
}

.btn-enviar-contacto:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mensaje-exito,
.mensaje-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mensaje-exito {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.mensaje-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.contacto-mapa-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contacto-mapa-section h3 {
    text-align: center;
    color: #233E8D;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.contacto-mapa-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contacto-choix-container {
        padding: 15px;
        margin: 20px auto;
    }

    .contacto-formulario-card,
    .contacto-mapa-section {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .contacto-formulario-card h3 {
        font-size: 22px;
    }

    .contacto-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-enviar-contacto {
        padding: 13px;
        font-size: 15px;
    }

    .contacto-mapa-section iframe {
        height: 300px;
    }

    .recaptcha-wrapper {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS: QUEJAS Y PROPUESTA
   (secciones con select, archivo adjunto, títulos de sección)
   ============================================ */

.form-section-title {
    color: #233E8D;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #D2B74C;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title svg {
    color: #D2B74C;
    flex-shrink: 0;
}

.form-row {
    display: block;
    margin-bottom: 0;
}

.form-row-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #233E8D;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 62, 141, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
    background: #ffffff;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: #233E8D;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #1a2f6b;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

#datosPersonales {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .form-row-2cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section-title {
        font-size: 18px;
    }
}
